|
OpenVDB
7.2.0
|
Object that encapsulates compiled AX code which can be executed on a collection of VDB volume grids. More...
#include <VolumeExecutable.h>
Public Types | |
| enum | IterType { ON, OFF, ALL } |
| using | Ptr = std::shared_ptr< VolumeExecutable > |
Public Member Functions | |
| ~VolumeExecutable () | |
| VolumeExecutable (const VolumeExecutable &other) | |
| Copy constructor. Shares the LLVM constructs but deep copies the settings. Multiple copies of an executor can be used at the same time safely. More... | |
| void | execute (openvdb::GridPtrVec &grids) const |
| Execute AX code on target grids. More... | |
| void | execute (openvdb::GridBase &grid) const |
| void | setCreateMissing (const bool flag) |
| Set the behaviour when missing grids are accessed. Default behaviour is true, which creates them with default transforms and background values. More... | |
| bool | getCreateMissing () const |
| void | setTreeExecutionLevel (const Index level) |
| Set the execution level for this executable. This controls what nodes are processed when execute is called. Possible values depend on the OpenVDB configuration in use however a value of 0 is the default and will always correspond to the lowest level (leaf-level). More... | |
| Index | getTreeExecutionLevel () const |
| void | setValueIterator (const IterType &iter) |
| Set the value iterator type to use with this executable. Options are ON, OFF, ALL. Default is ON. More... | |
| IterType | getValueIterator () const |
| void | setGrainSize (const size_t grain) |
| Set the threading grain size. Default is 1. A value of 0 has the effect of disabling multi-threading. More... | |
| size_t | getGrainSize () const |
| OPENVDB_DEPRECATED void | execute (openvdb::GridPtrVec &grids, const IterType iter, const bool create) const |
| OPENVDB_DEPRECATED void | execute (openvdb::GridPtrVec &grids, const IterType iter) const |
Friends | |
| class | Compiler |
| class | ::TestVolumeExecutable |
Object that encapsulates compiled AX code which can be executed on a collection of VDB volume grids.
| using Ptr = std::shared_ptr<VolumeExecutable> |
|
strong |
| ~VolumeExecutable | ( | ) |
| VolumeExecutable | ( | const VolumeExecutable & | other | ) |
Copy constructor. Shares the LLVM constructs but deep copies the settings. Multiple copies of an executor can be used at the same time safely.
| void execute | ( | openvdb::GridPtrVec & | grids | ) | const |
Execute AX code on target grids.
| void execute | ( | openvdb::GridBase & | grid | ) | const |
|
inline |
|
inline |
| bool getCreateMissing | ( | ) | const |
| size_t getGrainSize | ( | ) | const |
| Index getTreeExecutionLevel | ( | ) | const |
| IterType getValueIterator | ( | ) | const |
| void setCreateMissing | ( | const bool | flag | ) |
Set the behaviour when missing grids are accessed. Default behaviour is true, which creates them with default transforms and background values.
| flag | Enables or disables the creation of missing attributes |
| void setGrainSize | ( | const size_t | grain | ) |
Set the threading grain size. Default is 1. A value of 0 has the effect of disabling multi-threading.
| grain | The grain size |
| void setTreeExecutionLevel | ( | const Index | level | ) |
Set the execution level for this executable. This controls what nodes are processed when execute is called. Possible values depend on the OpenVDB configuration in use however a value of 0 is the default and will always correspond to the lowest level (leaf-level).
| level | The tree execution level to set |
| void setValueIterator | ( | const IterType & | iter | ) |
Set the value iterator type to use with this executable. Options are ON, OFF, ALL. Default is ON.
| iter | The value iterator type to set |
|
friend |
|
friend |
1.8.11