Module vrChunkPtr :: Class vrChunkPtr
[frames] | no frames]

Class vrChunkPtr

 object --+        
          |        
??.instance --+    
              |    
  StateChunkPtr --+
                  |
                 vrChunkPtr

Deprecated. Use API v2 vrdMaterialChunk types instead.

The StateChunkPtr is the base class for access to every chunk of a material.

Instance Methods
 
__init__(source)
The constructor of the vrChunkPtr class.
vrFieldAccess
fields()
Returns the field access object to get access to all fields.
unsigned int (32bit)
getID()
Returns the node id.
StateChunkPtr
getPtr()
Returns the OpenSG StateChunkPtr.
bool
isValid()
Returns true when the node is valid.

Inherited from StateChunkPtr: __reduce__

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 64
Method Details

__init__(source)
(Constructor)

 

The constructor of the vrChunkPtr class. There are three valid versions:

vrChunkPtr() Creates a vrChunkPtr object.

vrChunkPtr(source) Creates a vrChunkPtr object from an unsigned int.

vrChunkPtr(source) Creates a vrChunkPtr object from a StateChunkPtr.

Parameters:
  • source (unsigned int or StateChunkPtr) - The source (Optional).
Overrides: StateChunkPtr.__init__

fields()

 

Returns the field access object to get access to all fields. Take a look at the vrFieldAccess documentation to see how to manipulate the value of the fields.

Returns: vrFieldAccess
The field access object.

getID()

 

Returns the node id.

Returns: unsigned int (32bit)
The node id.

getPtr()

 

Returns the OpenSG StateChunkPtr.

Returns: StateChunkPtr
The pointer to the state chunk.

isValid()

 

Returns true when the node is valid. Should be called for sanity reasons after searching a material with findMaterial.

Returns: bool
Valid/Invalid.