Package org.robwork.sdurw
Class ProximityModel
- java.lang.Object
-
- org.robwork.sdurw.ProximityModel
-
public class ProximityModel extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProximityModel(long cPtr, boolean cMemoryOwn)ProximityModel(ProximityStrategy pOwner)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddGeometry(Geometry geom)adds geometrybooleanaddGeometry(GeometryPtr geom)adds geometry using pointerbooleanaddGeometry(GeometryPtr geom, boolean forceCopy)adds geometry using pointervoiddelete()static longgetCPtr(ProximityModel obj)FramegetFrame()return pointer to the associated frameVectorGeometryPtrgetGeometries()get the associated GeometriesVectorStringgetGeometryIDs()return vector of names for the geometries added to this ProximityModelProximityStrategygetOwner()booleanremoveGeometry(java.lang.String geoid)removes a geometry from the ProximityModelvoidsetFrame(Frame frame)sets the associated frame
voidsetOwner(ProximityStrategy value)
-
-
-
Constructor Detail
-
ProximityModel
public ProximityModel(long cPtr, boolean cMemoryOwn)
-
ProximityModel
public ProximityModel(ProximityStrategy pOwner)
Constructor
- Parameters:
pOwner- the ProximityStrategy owning this ProximityModel
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityModel obj)
-
delete
public void delete()
-
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()
-
-