CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OdGiVertexDataStorage Class Reference

#include <GiShmDataStorage.h>

Inheritance diagram for OdGiVertexDataStorage:
OdGiVertexData

Public Member Functions

 OdGiVertexDataStorage ()
 
const OdGeVector3dArraynormalsArray () const
 
OdGeVector3dArraynormalsArray ()
 
void setNormalsArray ()
 
OdGeVector3dresizeNormalsArray (OdUInt32 nSize, bool bSetPtr=true)
 
const OdCmEntityColorArraytrueColorsArray () const
 
OdCmEntityColorArraytrueColorsArray ()
 
void setTrueColorsArray ()
 
OdCmEntityColorresizeTrueColorsArray (OdUInt32 nSize, bool bSetPtr=true)
 
const OdGePoint3dArraymappingCoordsArray (MapChannel) const
 
OdGePoint3dArraymappingCoordsArray (MapChannel)
 
void setMappingCoordsArray (MapChannel channel)
 
OdGePoint3dresizeMappingCoordsArray (MapChannel channel, OdUInt32 nSize, bool bSetPtr=true)
 
void cloneData (const OdGiVertexData *pData)
 
void resetPointers ()
 
void setPointersArray (const OdGiVertexData *pVertexData=NULL)
 
void clearArrays (const OdGiVertexData *pVertexData=NULL)
 
void deleteArrays (const OdGiVertexData *pVertexData=NULL)
 
void reserveArrays (const OdGiVertexData *pVertexData, OdUInt32 nReserve)
 
void copyFrom (const OdGiVertexData *pVertexData, OdUInt32 nVertex)
 
- Public Member Functions inherited from OdGiVertexData
 OdGiVertexData ()
 
void setNormals (const OdGeVector3d *normals)
 
void setOrientationFlag (const OdGiOrientationType orientationType)
 
void setTrueColors (const OdCmEntityColor *colors)
 
void setMappingCoords (MapChannel channel, const OdGePoint3d *coords)
 
const OdGeVector3dnormals () const
 
OdGiOrientationType orientationFlag () const
 
const OdCmEntityColortrueColors () const
 
const OdGePoint3dmappingCoords (MapChannel channel) const
 

Protected Attributes

OdGeVector3dArray m_normals
 
OdCmEntityColorArray m_trueColors
 
OdGePoint3dArray m_texCoords
 

Additional Inherited Members

- Public Types inherited from OdGiVertexData
enum  MapChannel { kAllChannels = 0 }
 

Detailed Description

Vertex data storage class.

<group OdGi_Classes>

Definition at line 867 of file GiShmDataStorage.h.

Constructor & Destructor Documentation

◆ OdGiVertexDataStorage()

OdGiVertexDataStorage::OdGiVertexDataStorage ( )
inline

Default constructor for objects of the OdGiVertexDataStorage class.

Definition at line 880 of file GiShmDataStorage.h.

Member Function Documentation

◆ clearArrays()

void OdGiVertexDataStorage::clearArrays ( const OdGiVertexData pVertexData = NULL)
inline

Clears all arrays of the specified OdGiVertexData object.

Parameters
pVertexData[in] Object to clear arrays of.
Remarks
Clears the following arrays: normals, true colors, mapping coordinates.

Definition at line 1036 of file GiShmDataStorage.h.

◆ cloneData()

void OdGiVertexDataStorage::cloneData ( const OdGiVertexData pData)
inline

Clones data of the specified OdGiVertexData object.

Parameters
pData[in] OdGiVertexData object, data of which to be cloned by this OdGiVertexDataStorage object.

Definition at line 996 of file GiShmDataStorage.h.

◆ copyFrom()

void OdGiVertexDataStorage::copyFrom ( const OdGiVertexData pVertexData,
OdUInt32  nVertex 
)
inline

Copies elements with the specified index from all arrays of the specified OdGiVertexData object and appends them to arrays of this OdGiVertexDataStorage object.

Parameters
pVertexData[in] Object to copy array elements from.
nVertex[in] Index of the elements in arrays.
Remarks
Copies elements from the following arrays: normals, true colors, mapping coordinates.

Definition at line 1087 of file GiShmDataStorage.h.

◆ deleteArrays()

void OdGiVertexDataStorage::deleteArrays ( const OdGiVertexData pVertexData = NULL)
inline

Deletes all arrays of the specified OdGiVertexData object.

Parameters
pVertexData[in] Object to delete arrays of.
Remarks
Deletes the following arrays: normals, true colors, mapping coordinates.

Definition at line 1051 of file GiShmDataStorage.h.

◆ mappingCoordsArray() [1/2]

OdGePoint3dArray & OdGiVertexDataStorage::mappingCoordsArray ( MapChannel  )
inline

Retrieves the mapping coordinates array of this OdGiVertexDataStorage object.

Parameters
channel[in] Mapping channel.
Returns
Array of mapping coordinates.

Definition at line 969 of file GiShmDataStorage.h.

◆ mappingCoordsArray() [2/2]

const OdGePoint3dArray & OdGiVertexDataStorage::mappingCoordsArray ( MapChannel  ) const
inline

Retrieves the mapping coordinates array of this OdGiVertexDataStorage object.

Parameters
channel[in] Mapping channel.
Returns
Array of mapping coordinates.

Definition at line 958 of file GiShmDataStorage.h.

◆ normalsArray() [1/2]

OdGeVector3dArray & OdGiVertexDataStorage::normalsArray ( )
inline

Retrieves the normals array of this OdGiVertexDataStorage object.

Returns
Array of normals.

Definition at line 897 of file GiShmDataStorage.h.

◆ normalsArray() [2/2]

const OdGeVector3dArray & OdGiVertexDataStorage::normalsArray ( ) const
inline

Retrieves the normals array of this OdGiVertexDataStorage object.

Returns
Array of normals.

Definition at line 889 of file GiShmDataStorage.h.

◆ reserveArrays()

void OdGiVertexDataStorage::reserveArrays ( const OdGiVertexData pVertexData,
OdUInt32  nReserve 
)
inline

Reserves cells in all arrays of the specified OdGiVertexData object.

Parameters
pVertexData[in] Object which arrays to reserve cells in.
nReserve[in] Number of cells to reserve.
Remarks
Reserves cells in the following arrays: normals, true colors, mapping coordinates.

Definition at line 1068 of file GiShmDataStorage.h.

◆ resetPointers()

void OdGiVertexDataStorage::resetPointers ( )
inline

Resets all array pointers of this OdGiVertexDataStorage object to NULL.

Remarks
Resets the following array pointers: normals, true colors, mapping coordinates.

Definition at line 1005 of file GiShmDataStorage.h.

◆ resizeMappingCoordsArray()

OdGePoint3d * OdGiVertexDataStorage::resizeMappingCoordsArray ( MapChannel  channel,
OdUInt32  nSize,
bool  bSetPtr = true 
)
inline

Resizes the mapping coordinates array.

Parameters
channel[in] Mapping channel.
nSize[in] New mapping coordinates array size.
bSetPtr[in] True to set the mapping coordinates array after resizing.
Returns
Pointer to the array of mapping coordinates.

Definition at line 988 of file GiShmDataStorage.h.

◆ resizeNormalsArray()

OdGeVector3d * OdGiVertexDataStorage::resizeNormalsArray ( OdUInt32  nSize,
bool  bSetPtr = true 
)
inline

Resizes the normals array.

Parameters
nSize[in] New normals array size.
bSetPtr[in] True to set the normals array after resizing.
Returns
Pointer to the array of normals.

Definition at line 913 of file GiShmDataStorage.h.

◆ resizeTrueColorsArray()

OdCmEntityColor * OdGiVertexDataStorage::resizeTrueColorsArray ( OdUInt32  nSize,
bool  bSetPtr = true 
)
inline

Resizes the true colors array.

Parameters
nSize[in] New true colors array size.
bSetPtr[in] True to set the true colors array after resizing.
Returns
Pointer to the array of true colors.

Definition at line 946 of file GiShmDataStorage.h.

◆ setMappingCoordsArray()

void OdGiVertexDataStorage::setMappingCoordsArray ( MapChannel  channel)
inline

Sets the mapping coordinates array.

Parameters
channel[in] Mapping channel.

Definition at line 976 of file GiShmDataStorage.h.

◆ setNormalsArray()

void OdGiVertexDataStorage::setNormalsArray ( )
inline

Sets the normals array.

Definition at line 902 of file GiShmDataStorage.h.

◆ setPointersArray()

void OdGiVertexDataStorage::setPointersArray ( const OdGiVertexData pVertexData = NULL)
inline

Sets all arrays of this OdGiVertexDataStorage object using data from the specified OdGiVertexData object.

Parameters
pVertexData[in] Object to use data for setting arrays.
Remarks
Sets the following arrays: normals, true colors, mapping coordinates.

Definition at line 1021 of file GiShmDataStorage.h.

◆ setTrueColorsArray()

void OdGiVertexDataStorage::setTrueColorsArray ( )
inline

Sets the true colors array.

Definition at line 935 of file GiShmDataStorage.h.

◆ trueColorsArray() [1/2]

OdCmEntityColorArray & OdGiVertexDataStorage::trueColorsArray ( )
inline

Retrieves the true colors array of this OdGiVertexDataStorage object.

Returns
Array of true colors.

Definition at line 930 of file GiShmDataStorage.h.

◆ trueColorsArray() [2/2]

const OdCmEntityColorArray & OdGiVertexDataStorage::trueColorsArray ( ) const
inline

Retrieves the true colors array of this OdGiVertexDataStorage object.

Returns
Array of true colors.

Definition at line 922 of file GiShmDataStorage.h.

Member Data Documentation

◆ m_normals

OdGeVector3dArray OdGiVertexDataStorage::m_normals
protected

Definition at line 871 of file GiShmDataStorage.h.

◆ m_texCoords

OdGePoint3dArray OdGiVertexDataStorage::m_texCoords
protected

Definition at line 873 of file GiShmDataStorage.h.

◆ m_trueColors

OdCmEntityColorArray OdGiVertexDataStorage::m_trueColors
protected

Definition at line 872 of file GiShmDataStorage.h.


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