11 #ifndef __SIM_IndexField__
12 #define __SIM_IndexField__
72 return getCenter() - getSize()/2;
92 void resizeKeepData(
const UT_Vector3 &
size,
const UT_Vector3 ¢er,
bool keepdata,
const char *address = 0,
int port = -1);
100 void matchField(
const SIM_IndexField *field,
bool matchsamples =
false);
105 fpreal getVoxelDiameter()
const;
116 bool posToIndex(
const UT_Vector3 &pos,
int &
x,
int &
y,
int &
z)
const;
131 {
return getField()->field()->isConstant(0); }
145 void updateTotalVoxels();
188 exint myStashedInitialValue;
195 getIndexFieldDopDescription());
#define SIM_NAME_VOXELPLANE
#define SIM_NAME_POSITIONPATH
virtual void makeEqualSubclass(const SIM_Data *source)
#define SIM_NAME_VOXELSAMPLE
#define DECLARE_STANDARD_GETCASTTOTYPE()
GA_API const UT_StringHolder div
virtual bool loadSubclass(UT_IStream &is)
virtual void optionChangedSubclass(const char *name)
SIM_RawIndexField rawfield_type
#define GETSET_DATA_FUNCS_B(DataName, FuncName)
#define GETSET_DATA_FUNCS_S(DataName, FuncName)
GLdouble GLdouble GLdouble z
virtual int64 getMemorySizeSubclass() const
This class holds a three dimensional scalar field.
#define GETSET_DATA_FUNCS_F(DataName, FuncName)
SYS_FORCE_INLINE T & x(void)
#define GETSET_DATA_FUNCS_V3(DataName, FuncName)
bool testForNan() const
Can't have NANs in integer fields.
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
SYS_FORCE_INLINE T & z(void)
UT_VoxelBorderType getBorder() const
SIM_RawIndexField * getField() const
Retrieve raw field.
GLsizei GLsizei GLchar * source
virtual void saveSubclass(std::ostream &os) const
#define SIM_NAME_UNIFORMVOXELS
#define GETSET_DATA_FUNCS_I(DataName, FuncName)
GLuint const GLchar * name
This class holds a three dimensional tensor field.
SYS_FORCE_INLINE T & y(void)
GLint GLint GLsizei GLint border
UT_Vector3 getOrig() const
void handleModification(int code=-1)
This class holds a three dimensional scalar field.
void setBorder(UT_VoxelBorderType border)
void pubHandleModification()
Signals to the field that it has been altered externally.
bool appearsToBeUnused() const
This class holds a three dimensional vector field.
virtual void initializeSubclass()