VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtIndirectVerticesHelper Class Reference

utility class to copy src geometry into interleaved vertex format used by bindless

Public Member Functions

 DtIndirectVerticesHelper (DtDe &de)
 
virtual ~DtIndirectVerticesHelper ()
 
 DtIndirectVerticesHelper (const DtIndirectVerticesHelper &)=delete
 
DtIndirectVerticesHelperoperator= (const DtIndirectVerticesHelper &)=delete
 
virtual void copyVertices (std::vector< DtIndirectBindlessVertexFormat > &destinationVertices, const osg::Geometry &srcGeometry, const osg::Matrix &transform) const
 
virtual void copyNormals (std::vector< DtIndirectBindlessVertexFormat > &destinationVertices, const osg::Geometry &srcGeometry) const
 
virtual void copyColors (std::vector< DtIndirectBindlessVertexFormat > &destinationVertices, const osg::Geometry &srcGeometry) const
 
virtual void copyTextureCoords (std::vector< std::vector< Vector2_32 > > &destinationCoordinates, const osg::Geometry &srcGeometry, const DtIndirectGeometryTextures &texturesForThisGeometry, const std::vector< DtIndirectBindlessVertexFormat > &destinationVertices) const
 
virtual void setModelName (const std::string &modelname)
 
virtual bool degenerate (void) const
 
virtual void setCopyRange (int startVertex, int endVertex)
 

Protected Member Functions

virtual bool checkSrcTextureCoordsOk (const osg::Geometry &srcGeometry) const
 

Protected Attributes

std::string myModelFileName
 
bool myDegenerateVertices
 
DtDemyDe
 
int myStartVertex = -1
 
int myEndVertex = -1
 

Constructor & Destructor Documentation

makVrv::DtIndirectVerticesHelper::DtIndirectVerticesHelper ( DtDe de)

constructor

virtual makVrv::DtIndirectVerticesHelper::~DtIndirectVerticesHelper ( )
virtual

destructor

makVrv::DtIndirectVerticesHelper::DtIndirectVerticesHelper ( const DtIndirectVerticesHelper )
delete

not allowed

Member Function Documentation

DtIndirectVerticesHelper& makVrv::DtIndirectVerticesHelper::operator= ( const DtIndirectVerticesHelper )
delete

not allowed

virtual void makVrv::DtIndirectVerticesHelper::copyVertices ( std::vector< DtIndirectBindlessVertexFormat > &  destinationVertices,
const osg::Geometry &  srcGeometry,
const osg::Matrix &  transform 
) const
virtual

copy the vertex positions from src into the destination

virtual void makVrv::DtIndirectVerticesHelper::copyNormals ( std::vector< DtIndirectBindlessVertexFormat > &  destinationVertices,
const osg::Geometry &  srcGeometry 
) const
virtual

copy the vertex normals from src into the destination

virtual void makVrv::DtIndirectVerticesHelper::copyColors ( std::vector< DtIndirectBindlessVertexFormat > &  destinationVertices,
const osg::Geometry &  srcGeometry 
) const
virtual

copy the vertex colors from src into the destination

virtual void makVrv::DtIndirectVerticesHelper::copyTextureCoords ( std::vector< std::vector< Vector2_32 > > &  destinationCoordinates,
const osg::Geometry &  srcGeometry,
const DtIndirectGeometryTextures texturesForThisGeometry,
const std::vector< DtIndirectBindlessVertexFormat > &  destinationVertices 
) const
virtual

copy the vertex texture coordinates from src into the destination

virtual void makVrv::DtIndirectVerticesHelper::setModelName ( const std::string &  modelname)
virtual

used for error messages

virtual bool makVrv::DtIndirectVerticesHelper::degenerate ( void  ) const
virtual
virtual void makVrv::DtIndirectVerticesHelper::setCopyRange ( int  startVertex,
int  endVertex 
)
virtual

Specifiec the target vertex range to use for subsequent copy operations. This allows for a subset of the vertex data to be used rather than the full buffer. To reset to copying of the full buffer -1 can be used.

virtual bool makVrv::DtIndirectVerticesHelper::checkSrcTextureCoordsOk ( const osg::Geometry &  srcGeometry) const
protectedvirtual

check if the src texture coordinates check out

Member Data Documentation

std::string makVrv::DtIndirectVerticesHelper::myModelFileName
protected
bool makVrv::DtIndirectVerticesHelper::myDegenerateVertices
mutableprotected
DtDe& makVrv::DtIndirectVerticesHelper::myDe
protected
int makVrv::DtIndirectVerticesHelper::myStartVertex = -1
protected

The starting vertex index.

int makVrv::DtIndirectVerticesHelper::myEndVertex = -1
protected

The ending vertex index.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)