shape_doc 0.1
graphic< C, V > Struct Template Reference

#include <graphic.hpp>

Inheritance diagram for graphic< C, V >:
geometric< V >

List of all members.

Public Types

Public Member Functions

Public Attributes

Protected Attributes


Detailed Description

template<class C, class V = default_env>
struct mmx::shape::graphic< C, V >

Definition at line 27 of file graphic.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
E_VERTEX 
E_LINE 
E_TRIANGLE 
E_QUAD 

Definition at line 29 of file graphic.hpp.


Constructor & Destructor Documentation

graphic ( void  ) [inline]

Definition at line 38 of file graphic.hpp.

{};
graphic ( int  type,
int  nbv,
int  nbi,
bool  hasnormal = false 
)

Definition at line 44 of file graphic.hpp.

                                                       {
  this->type = t;
  this->nbv = nbv;
  this->nbi = nbi;
  vertices = new double[3*nbv];
  if ( hasnormal ) normals = new double[3*nbv];
  else             normals = 0;
  indices = new int[nbi];
  colors=new float[3*nbv];
}
~graphic ( void  ) [virtual]

Definition at line 56 of file graphic.hpp.

               {
  if ( vertices ) delete[] vertices;
  if ( normals  ) delete[] normals;
  if ( indices ) delete[] indices;
  if ( colors )  delete[] colors;
}

Member Function Documentation

bool orientation ( double *  q0,
double *  q1,
double *  q2,
double *  q3 
) [inherited]
bool position ( double *  x,
double *  y,
double *  z 
) [inherited]

Member Data Documentation

float* colors

Definition at line 35 of file graphic.hpp.

int* indices

Definition at line 36 of file graphic.hpp.

Referenced by use< tpl3d_def >::as_graphic().

double m_q0 [protected, inherited]

Definition at line 76 of file shape.hpp.

double m_q1 [protected, inherited]

Definition at line 76 of file shape.hpp.

double m_q2 [protected, inherited]

Definition at line 76 of file shape.hpp.

double m_q3 [protected, inherited]

Definition at line 76 of file shape.hpp.

double m_x [protected, inherited]

Definition at line 75 of file shape.hpp.

double m_y [protected, inherited]

Definition at line 75 of file shape.hpp.

double m_z [protected, inherited]

Definition at line 75 of file shape.hpp.

unsigned nbi

Definition at line 32 of file graphic.hpp.

unsigned nbv

Definition at line 31 of file graphic.hpp.

C* normals

Definition at line 34 of file graphic.hpp.

unsigned type

Definition at line 30 of file graphic.hpp.

Definition at line 33 of file graphic.hpp.

Referenced by use< tpl3d_def >::as_graphic().


The documentation for this struct was generated from the following file: