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

Class vrTextureChunkPtr

 object --+        
          |        
??.instance --+    
              |    
TextureChunkPtr --+
                  |
                 vrTextureChunkPtr

Deprecated. Use API v2 vrdTextureChunk instead.

A wrapper class for the OpenSG TextureChunkPtr.

Instance Methods
 
__init__(source)
The constructor of the vrTextureChunkPtr class.
vrFieldAccess
fields()
Returns the field access object to get access to all fields.
unsigned int
getID()
Returns the node id.
vrImagePtr
getImage()
Returns the image pointer.
string
getImageFilename()
Returns the image filename.
TextureChunkPtr
getPtr()
Returns the OpenSG TextureChunkPtr.
 
imageContentChanged()
Updates the texture on the graphics card.
bool
isValid()
Return true when the chunk is valid.
 
setImage(image)
Sets a new image.
 
setImageFilename(name)
Sets a new image via filename.
 
setImageFilenameNoCaching(name)
Sets a new image via filename without image caching.

Inherited from TextureChunkPtr: __reduce__

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 64
Method Details

__init__(source)
(Constructor)

 

The constructor of the vrTextureChunkPtr class. There are four valid versions:

vrTextureChunkPtr() Creates a vrSwitch object for one node.

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

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

vrTextureChunkPtr(source) Creates a vrTextureChunkPtr object from a TextureChunkPtr.

Parameters:
  • source (unsigned int or StateChunkPtr or TextureChunkPtr) - The source (Optional).
Overrides: TextureChunkPtr.__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
The node id.

getImage()

 

Returns the image pointer.

Returns: vrImagePtr
The image pointer.

getImageFilename()

 

Returns the image filename.

Returns: string
The name of the file.

getPtr()

 

Returns the OpenSG TextureChunkPtr.

Returns: TextureChunkPtr
The node pointer.

isValid()

 

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

Returns: bool
True if the chunk is valid, false otherwise.

setImage(image)

 

Sets a new image.

Parameters:
  • image (vrImagePtr) - The image pointer.

setImageFilename(name)

 

Sets a new image via filename.

Parameters:
  • name (string) - The name of the file.

setImageFilenameNoCaching(name)

 

Sets a new image via filename without image caching.

Parameters:
  • name (string) - The name of the file.