Source Code

 

 

 

// ----------------------------------------------------------------------------

//

//          SliceO_Geom: 3D polygon geometry

//

// ----------------------------------------------------------------------------

class          SLICEO_DB SliceO_Geom  {

 

public:

          // ---- Constructeurs ---

          SliceO_Geom() ;

          ~SliceO_Geom() ;

 

//          --------------------------------------

 

private:

          unsigned short          m_tag ;              // color can be either a tag index or RGB triple

          unsigned int          m_color ;

 

public:

          inline unsigned short          TAG_Get( void ) ;

          inline void                              TAG_Set( unsigned short tag ) ;

 

          inline unsigned int          Color_Get( void ) ;

          inline void                              Color_Set( unsigned int val ) ;

          inline void                              Color_Set( unsigned char r, unsigned char g, unsigned char b ) ;

 

//          --------------------------------------

 

public:

          Matrix                    m_mat ;    // 4x4 transformation matrix

 

//          --------------------------------------

 

public:

          void                              *m_mov ;    // Pointer to a MOVIE object

          SliceO_Class          *m_group ;  // pointer to DB object

          void                              *m_ima ;    // point to the Tomo_Image struct

 

//          --------------------------------------

          // --- Drawing callbacks ---

          int          (*Fct_Draw_Geom[CALLBACK_NB_GEOM])( SliceO_Geom *pt, UInt64 flag, SliceO_Window *window, int step, int nb_step ) ;

 

} ;