Package org.robwork.sdurw
Class ProximityModelPtr
- java.lang.Object
-
- org.robwork.sdurw.ProximityModelPtr
-
public class ProximityModelPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ProximityModelPtr()Default constructor yielding a NULL-pointer.ProximityModelPtr(long cPtr, boolean cMemoryOwn)ProximityModelPtr(ProximityModel 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 ProximityModel__ref__()Dereferencing operator.booleanaddGeometry(Geometry geom)adds geometrybooleanaddGeometry(GeometryPtr geom)adds geometry using pointerbooleanaddGeometry(GeometryPtr geom, boolean forceCopy)adds geometry using pointervoiddelete()ProximityModelderef()The pointer stored in the object.booleanequals(ProximityModel p)static longgetCPtr(ProximityModelPtr obj)ProximityModelgetDeref()Member access operator.FramegetFrame()return pointer to the associated frameVectorGeometryPtrgetGeometries()get the associated GeometriesVectorStringgetGeometryIDs()return vector of names for the geometries added to this ProximityModelProximityStrategygetOwner()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipbooleanremoveGeometry(java.lang.String geoid)removes a geometry from the ProximityModelvoidsetFrame(Frame frame)sets the associated frame
voidsetOwner(ProximityStrategy value)
-
-
-
Constructor Detail
-
ProximityModelPtr
public ProximityModelPtr(long cPtr, boolean cMemoryOwn)
-
ProximityModelPtr
public ProximityModelPtr()
Default constructor yielding a NULL-pointer.
-
ProximityModelPtr
public ProximityModelPtr(ProximityModel ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityModelPtr obj)
-
delete
public void delete()
-
deref
public ProximityModel deref()
The pointer stored in the object.
-
__ref__
public ProximityModel __ref__()
Dereferencing operator.
-
getDeref
public ProximityModel getDeref()
Member access operator.
-
equals
public boolean equals(ProximityModel 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
-
getGeometryIDs
public VectorString getGeometryIDs()
return vector of names for the geometries added to this ProximityModel
-
getGeometries
public VectorGeometryPtr getGeometries()
get the associated Geometries- Returns:
- a list of Geomety pointers beloninh to the model
-
addGeometry
public boolean addGeometry(Geometry geom)
adds geometry- Parameters:
geom- the geometry to add
-
addGeometry
public boolean addGeometry(GeometryPtr geom, boolean forceCopy)
adds geometry using pointer- Parameters:
geom- [in] the geometry to addforceCopy- [in]
-
addGeometry
public boolean addGeometry(GeometryPtr geom)
adds geometry using pointer- Parameters:
geom- [in] the geometry to add
-
removeGeometry
public boolean removeGeometry(java.lang.String geoid)
removes a geometry from the ProximityModel- Parameters:
geoid- name of geometry to remove- Returns:
- bool
-
getFrame
public Frame getFrame()
return pointer to the associated frame
-
setFrame
public void setFrame(Frame frame)
sets the associated frame
- Parameters:
frame- frame to set
-
setOwner
public void setOwner(ProximityStrategy value)
-
getOwner
public ProximityStrategy getOwner()
-
-