Package org.robwork.sdurw_geometry
Class Model3DCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.Model3DCPtr
-
public class Model3DCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description Model3DCPtr()Default constructor yielding a NULL-pointer.Model3DCPtr(long cPtr, boolean cMemoryOwn)Model3DCPtr(Model3D ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Model3D__ref__()Dereferencing operator.voiddelete()Model3Dderef()The pointer stored in the object.booleanequals(Model3D p)SWIGTYPE_p_std__vectorT_rw__geometry__Model3D__Material_tget_materials()The array of materials.SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__Object3DGeneric_t_tget_objects()The array of objects in the modelstatic longgetCPtr(Model3DCPtr obj)Model3DgetDeref()Member access operator.booleanisDynamic()true if data in the model are expected to changebooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
Model3DCPtr
public Model3DCPtr(long cPtr, boolean cMemoryOwn)
-
Model3DCPtr
public Model3DCPtr()
Default constructor yielding a NULL-pointer.
-
Model3DCPtr
public Model3DCPtr(Model3D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(Model3DCPtr obj)
-
delete
public void delete()
-
deref
public Model3D deref()
The pointer stored in the object.
-
__ref__
public Model3D __ref__()
Dereferencing operator.
-
getDeref
public Model3D getDeref()
Member access operator.
-
equals
public boolean equals(Model3D p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
isDynamic
public boolean isDynamic()
true if data in the model are expected to change
-
get_materials
public SWIGTYPE_p_std__vectorT_rw__geometry__Model3D__Material_t get_materials()
The array of materials.
-
get_objects
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__Object3DGeneric_t_t get_objects()
The array of objects in the model
-
-