Module pyopenvdb :: Class Transform
[hide private]
[frames] | no frames]

Class Transform

 object --+    
          |    
??.instance --+
              |
             Transform

Instance Methods [hide private]
 
__eq__(...)
 
__getstate__(...)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__ne__(...)
 
__reduce__(...)
helper for pickle
 
__setstate__(...)
Transform
deepCopy()
Return a copy of this transform.
 
indexToWorld(...)
indexToWorld((x, y, z)) -> (x', y', z')
str
info()
Return a string containing a description of this transform.
 
rotate(radians, axis)
Accumulate a rotation about either Axis.X, Axis.Y or Axis.Z.
 
scale(s)
Accumulate a uniform scale.
 
shear(s, axis0, axis1)
Accumulate a shear (axis0 and axis1 are either Axis.X, Axis.Y or Axis.Z).
 
translate(...)
translate((x, y, z))
(dx, dy, dz)
voxelSize()
Return the size of voxels of the linear component of this transform.
float
voxelVolume()
Return the voxel volume of the linear component of this transform.
 
worldToIndex(...)
worldToIndex((x, y, z)) -> (x', y', z')
 
worldToIndexCellCentered(...)
worldToIndexCellCentered((x, y, z)) -> (i, j, k)
 
worldToIndexNodeCentered(...)
worldToIndexNodeCentered((x, y, z)) -> (i, j, k)

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __getstate_manages_dict__ = True
  __instance_size__ = 32
  __safe_for_unpickling__ = True
Properties [hide private]
  isLinear
True if this transform is linear
  typeName
name of this transform's type

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

indexToWorld(...)

 

indexToWorld((x, y, z)) -> (x', y', z')

Apply this transformation to the given coordinates.

scale(s)

 

Accumulate a uniform scale.

scale((sx, sy, sz))

Accumulate a nonuniform scale.

translate(...)

 

translate((x, y, z))

Accumulate a translation.

voxelSize()

 

Return the size of voxels of the linear component of this transform.

voxelSize((x, y, z)) -> (dx, dy, dz)

Return the size of the voxel at position (x, y, z).

Returns: (dx, dy, dz)

voxelVolume()

 

Return the voxel volume of the linear component of this transform.

voxelVolume((x, y, z)) -> float

Return the voxel volume at position (x, y, z).

Returns: float

worldToIndex(...)

 

worldToIndex((x, y, z)) -> (x', y', z')

Apply the inverse of this transformation to the given coordinates.

worldToIndexCellCentered(...)

 

worldToIndexCellCentered((x, y, z)) -> (i, j, k)

Apply the inverse of this transformation to the given coordinates and round the result to the nearest integer coordinates.

worldToIndexNodeCentered(...)

 

worldToIndexNodeCentered((x, y, z)) -> (i, j, k)

Apply the inverse of this transformation to the given coordinates and round the result down to the nearest integer coordinates.


Property Details [hide private]

isLinear

True if this transform is linear

Get Method:
unreachable(...)

typeName

name of this transform's type

Get Method:
unreachable(...)