Exchange Toolkit
Public Member Functions | List of all members
ts3d::Tess3DInstance Class Reference

Encapsulates the functionality desired to easily retrieve normal and texture coordinates for a tessellation. More...

#include <ExchangeToolkit.h>

Inheritance diagram for ts3d::Tess3DInstance:
ts3d::TessBaseInstance ts3d::Instance

Public Member Functions

 Tess3DInstance (InstancePath const &path)
 Throws if leaf type is not kA3DTypeTess3D.
 
double const * normals (void) const
 Obtains a pointer to an array of normal coordinates. The length of this array is determined by normalsSize()
 
A3DUns32 normalsSize (void) const
 Provides the size of the normal array.
 
double const * texCoords (void) const
 Obtains a pointer to an array of texture coordinates. The length of this array is determined by texCoordsSize()
 
A3DUns32 texCoordsSize (void) const
 Provides the length of the texCoords array.
 
A3DUns32 faceSize (void) const
 Provides the total number of faces with available tessellation data. More...
 
TessFaceDataHelper getIndexMeshForFace (A3DUns32 const &face_idx) const
 Gets an object that wraps the tessellation data of a given face. More...
 
- Public Member Functions inherited from ts3d::TessBaseInstance
 TessBaseInstance (InstancePath const &path)
 throws if leaf type is not "derived" from A3DTessBase
 
double const * coords (void) const
 Gets the array of coordinate values for the tesselation. This array is of length coordsSize().
 
A3DUns32 coordsSize (void) const
 The length of the coords() array.
 
- Public Member Functions inherited from ts3d::Instance
 Instance (InstancePath const &path)
 Constructs an Instance from the provided InstancePath.
 
 Instance (Instance const &other)
 Copy constructor.
 
 Instance (Instance &&other)
 Move constructor.
 
virtual ~Instance (void)
 Destructor.
 
Instanceoperator= (Instance const &other)
 Assignment.
 
Instanceoperator= (Instance &&other)
 Move assign.
 
bool operator== (Instance const &other) const
 Compare paths.
 
std::string getName (void) const
 Gets the object name.
 
std::string getType (void) const
 Gets the object type as a string.
 
InstancePath const & path (void) const
 Gets the InstancePath this Instance references.
 
Instance owner (void) const
 Gets an Instance object for the parent.
 
void reset (InstancePath const &new_path)
 Resets the InstancePath this Instance references.
 
A3DEntity * leaf (void) const
 Gets the leaf entity pointer.
 
A3DEEntityType leafType (void) const
 Gets the type of the leaf entity.
 
bool getNetRemoved (void) const
 Gets the net removed.
 
bool getNetShow (void) const
 Gets the net show.
 
A3DGraphStyleData getNetStyle (void) const
 Gets the net style.
 
A3DUns16 getNetLayer (void) const
 Gets the net layer.
 

Detailed Description

Encapsulates the functionality desired to easily retrieve normal and texture coordinates for a tessellation.

Member Function Documentation

A3DUns32 ts3d::Tess3DInstance::faceSize ( void  ) const
inline

Provides the total number of faces with available tessellation data.

See also
getIndexMeshForFace
TessFaceDataHelper ts3d::Tess3DInstance::getIndexMeshForFace ( A3DUns32 const &  face_idx) const
inline

Gets an object that wraps the tessellation data of a given face.

Parameters
face_idxIndex of the face to obtain the access helper for. Valid index values must fall in the interval [0, faceSize()).

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