![]() |
VR-Forces 4.10 Class Documentation
|
handles the uv offsets for all the indirect geometry. More...

Classes | |
| struct | UvOffset |
| struct | UvOffsetInitializer |
Public Types | |
| typedef std::map< std::string, unsigned int > | AnnotationToUvOffsetMap |
| typedef std::map< int, AnnotationToUvOffsetMap > | MapIntToAnnotationToUvOffsetMap |
| typedef std::unordered_map < int, Vector2_32 > | ScrollableUvOffsetIdsAndMultipliers |
| typedef std::unordered_map < int, ScrollableUvOffsetIdsAndMultipliers > | MapInstancesToScrollableUvOffsetIds |
Public Types inherited from makVrv::DtIndirectManager | |
| enum | ManagerTypes { BaseClass, LodManager, SwitchManager, DofManager, UvOffsetManager, PerInstanceDataManager } |
Public Member Functions | |
| virtual | ~DtIndirectUvOffsetManager () |
| DTOR. More... | |
| virtual void | addUvOffsetAnnotations (int perGeomInstanceIndex, int size, const AnnotationToUvOffsetMap &annotationToUvOffsetMap, const ScrollableUvOffsetIdsAndMultipliers &scrollableUvOffsetIds, int instanceId) |
| Add all the uv annotations for a particular model instance. More... | |
| virtual void | addUvOffsetAnnotation (int perGeomInstanceIndex, unsigned int uvOffsetStartId) |
| Add the uv annotation for a particular per geom instance. More... | |
| virtual void | removeUvOffsets (int instanceId) |
| remove the uv offsets associated with an instance More... | |
| virtual void | setUvOffset (const std::string &annotation, int instanceId, float uOffset, float vOffset) |
| set the uv offset for a particular instance and annotation of a model More... | |
| virtual void | scrollUv (int instanceId, float uOffset, float vOffset) |
| set the uv offset for a particular of a model More... | |
| virtual void | annotationAndUvOffsets (int instanceId, std::vector< DtIndirectAnnotationAndUvOffset > &annotations) const |
| get all the annotations and uv offsets for a particular instance. More... | |
| virtual void | setPureSignalBasedUvOffsets (bool val) |
| indicate whether this manager's uv offsets get updated per frame or directly using signals More... | |
| virtual bool | pureSignalBasedUvOffsets (void) const |
| indicate whether this manager's switches get updated per frame via looking at the actual switches/multi-switches or directly using signals More... | |
| virtual void | processUvOffsets (void) |
| process the uv offsets. TO DO: do this in compute shader More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| release gl objects for this manager More... | |
| virtual const DtGlBuffer * | gpuUvOffsetBuffer (void) const |
| get the uv offset buffer used by the GPU More... | |
Public Member Functions inherited from makVrv::DtIndirectManager | |
| DtIndirectManager (DtDe &de, DtInstanceContainer &container) | |
| CTOR. More... | |
| virtual | ~DtIndirectManager () |
| DTOR. More... | |
Public Attributes | |
| friend | DtIndirectUvOffsetManagerCreator |
| only creator can create More... | |
Protected Types | |
| typedef DtReusableMemoryVector < UvOffset, UvOffsetInitializer > | VectorUvOffsets |
Protected Member Functions | |
| DtIndirectUvOffsetManager (DtDe &de, DtInstanceContainer &container) | |
| CTOR. only creator can create. More... | |
| virtual void | updateUvOffsetBufferIfNecessary (void) |
| update the gpu side buffer if switches are dirty More... | |
| virtual void | deleteBuffers (void) |
| delete the buffers More... | |
| virtual void | tearDownBuffers (void) const |
| tear down the buffers More... | |
Private Member Functions | |
| DtIndirectUvOffsetManager ()=delete | |
| default constructor not implemented More... | |
| DtIndirectUvOffsetManager (const DtIndirectUvOffsetManager &other)=delete | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtIndirectUvOffsetManager & | operator= (const DtIndirectUvOffsetManager &other)=delete |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtIndirectManager | |
| static int | managerType () |
| what type of manager is this class More... | |
handles the uv offsets for all the indirect geometry.
Sets up the default state of the uv offset. Also handles changes to the uv offset sent to this instances DtOsgArticulatedModel Owned by a DtIndirectGeometry 1:1
| typedef std::map<std::string, unsigned int> makVrv::DtIndirectUvOffsetManager::AnnotationToUvOffsetMap |
| typedef std::map<int, AnnotationToUvOffsetMap> makVrv::DtIndirectUvOffsetManager::MapIntToAnnotationToUvOffsetMap |
| typedef std::unordered_map<int, Vector2_32> makVrv::DtIndirectUvOffsetManager::ScrollableUvOffsetIdsAndMultipliers |
| typedef std::unordered_map< int, ScrollableUvOffsetIdsAndMultipliers > makVrv::DtIndirectUvOffsetManager::MapInstancesToScrollableUvOffsetIds |
|
protected |
|
virtual |
DTOR.
|
protected |
CTOR. only creator can create.
|
privatedelete |
default constructor not implemented
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
Add all the uv annotations for a particular model instance.
|
virtual |
Add the uv annotation for a particular per geom instance.
|
virtual |
remove the uv offsets associated with an instance
|
virtual |
set the uv offset for a particular instance and annotation of a model
|
virtual |
set the uv offset for a particular of a model
|
virtual |
get all the annotations and uv offsets for a particular instance.
|
virtual |
indicate whether this manager's uv offsets get updated per frame or directly using signals
|
virtual |
indicate whether this manager's switches get updated per frame via looking at the actual switches/multi-switches or directly using signals
|
virtual |
process the uv offsets. TO DO: do this in compute shader
|
virtual |
release gl objects for this manager
|
virtual |
get the uv offset buffer used by the GPU
|
protectedvirtual |
update the gpu side buffer if switches are dirty
|
protectedvirtual |
delete the buffers
|
protectedvirtual |
tear down the buffers
| friend makVrv::DtIndirectUvOffsetManager::DtIndirectUvOffsetManagerCreator |
only creator can create
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |