Geom Data

 

 

Private:

 

m_tag (unsigned short)

 

If the geometry was created from the TAG data, then it is associated with a TAG value. The color of the geometry will be the color of the TAG value.

m_color (unsigned int)

 

If the geometry was not created from the TAG data, then it has an RGB color.

Public:

TAG_Get

 

Return the TAG value associated with this geometry (if there is one)

TAG_Set

 

Assign a TAG value to the geometry

Color_Get

 

Return the RGB color associated with the geometry (if not associated with a TAG)

Color_Set

 

Assign an RGB color to the geometry

 

 

Public:

m_mat (Matrix)

 

Local 3D transformation associated with the geometry (by default this is an identity matrix).

 

 

Public:

m_mov (void *)

 

Pointer to the associated "MOVIE" structure (Movie_Objs * defined in "The Movie Library" section).  This is the structure that contain the actual points lines and polygons.

m_group (SliceO_Class *)

 

If the geometry has been created from TAG data, this pointer point to the "group" of frames that where used to create the geometry.

m_ima (void *)

 

Pointer to a "Tomo_Image" class (defined in "The Convert Library" section) from the first file used to create the geometry.

 

 

 

Geometry's color

 

SliceOmatic recognize 2 types of geometries:

 

The geometries created from the TAG data.The color of these geometries is defined by the color of the TAG used to create the geometry.  For these geometries, the effect of the methods will be:

 

TAG_Get

will return the current TAG value associated with the geometry

 

TAG_Set

will change the TAG value associated with the geometry

 

Color_Get

will return the RGB color of the TAG value associated with the geometry

 

Color_Set

no effect since m_color is not used by "Color_Get".

 

The geometries imported from files.  The color of these geometries is defined by RGB values.  By default this color is grey.   For these geometries, the effect of the methods will be:

 

TAG_Get

will return the current TAG value associated with the geometry (by default = 0)

 

TAG_Set

will associate a TAG value to the geometry.

 

Color_Get

will return the RGB color associated with the geometry. (Either the TAG color if m_tag is not "0") or m_color.

 

Color_Set

will change the m_color, the RGB color associated with the geometry.

 

 

 

m_mat

 

It is possible to place each geometry in space using this matrix.  For the time being, this matrix is always an identity matrix.  But the program does take it into account when drawing the geometries, so if you modify this matrix, it will move the geometry.

 

 

m_mov

 

This is the actual geometry's data.  The structure used is derived from the structure of an old variation on the MOVIE.BYU program I had.  The geometry is composed of a number of nodes and their connectivity.  The structure can be used to represent points (each "polygon" only has 1 associated node), lines (each "polygon" has 2 associated nodes), triangles and quad polygons. 

 

Note:

 

For the time being you can not have more than 4 nodes per polygons.  If you have geometries with more than 4 nodes, used the "GEMS_2D_Tessellate" function to convert the polygons to triangles.

 

 

m_group

 

If the geometry has been created from TAG data, this pointer point to the "group" of frames that where used to create the geometry.  The "group" is the parent class of the frames.

 

 

m_ima