Package org.robwork.sdurw_sensor
Class Contact3DPtr
- java.lang.Object
- 
- org.robwork.sdurw_sensor.Contact3DPtr
 
- 
 public class Contact3DPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
- 
- 
Constructor SummaryConstructors Constructor Description Contact3DPtr()Default constructor yielding a NULL-pointer.Contact3DPtr(long cPtr, boolean cMemoryOwn)Contact3DPtr(Contact3D ptr)Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Contact3D__ref__()Dereferencing operator.Contact3DCPtrcptr()voiddelete()Contact3Dderef()The pointer stored in the object.booleanequals(Contact3D p)longget_faceIdx()index to the geometric primitive on which the contact is locatedlongget_faceIdx2()static longgetCPtr(Contact3DPtr obj)doublegetCurvature()surface curvatureContact3DgetDeref()Member access operator.Vector3DgetF()the actual forcedoublegetMu()coulomb friction coefficientVector3DgetN()Surface contact normaldoublegetNormalForce()normal forceVector3DgetP()Contact positionbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
 ownershipvoidset_faceIdx(long value)index to the geometric primitive on which the contact is locatedvoidset_faceIdx2(long value)voidsetCurvature(double value)surface curvaturevoidsetF(Vector3D value)the actual forcevoidsetMu(double value)coulomb friction coefficientvoidsetN(Vector3D value)Surface contact normalvoidsetNormalForce(double value)normal forcevoidsetP(Vector3D value)Contact position
 
- 
- 
- 
Constructor Detail- 
Contact3DPtrpublic Contact3DPtr(long cPtr, boolean cMemoryOwn)
 - 
Contact3DPtrpublic Contact3DPtr() Default constructor yielding a NULL-pointer.
 - 
Contact3DPtrpublic Contact3DPtr(Contact3D ptr) Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 
- 
 - 
Method Detail- 
getCPtrpublic static long getCPtr(Contact3DPtr obj) 
 - 
deletepublic void delete() 
 - 
derefpublic Contact3D deref() The pointer stored in the object.
 - 
__ref__public Contact3D __ref__() Dereferencing operator.
 - 
getDerefpublic Contact3D getDeref() Member access operator.
 - 
equalspublic boolean equals(Contact3D p) 
 - 
isSharedpublic 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.
 
 - 
isNullpublic boolean isNull() checks if the pointer is null- Returns:
- Returns true if the pointer is null
 
 - 
cptrpublic Contact3DCPtr cptr() 
 - 
setPpublic void setP(Vector3D value) Contact position
 - 
getPpublic Vector3D getP() Contact position
 - 
setNpublic void setN(Vector3D value) Surface contact normal
 - 
getNpublic Vector3D getN() Surface contact normal
 - 
setFpublic void setF(Vector3D value) the actual force
 - 
getFpublic Vector3D getF() the actual force
 - 
setNormalForcepublic void setNormalForce(double value) normal force
 - 
getNormalForcepublic double getNormalForce() normal force
 - 
set_faceIdxpublic void set_faceIdx(long value) index to the geometric primitive on which the contact is located
 - 
get_faceIdxpublic long get_faceIdx() index to the geometric primitive on which the contact is located
 - 
set_faceIdx2public void set_faceIdx2(long value) 
 - 
get_faceIdx2public long get_faceIdx2() 
 - 
setCurvaturepublic void setCurvature(double value) surface curvature
 - 
getCurvaturepublic double getCurvature() surface curvature
 - 
setMupublic void setMu(double value) coulomb friction coefficient
 - 
getMupublic double getMu() coulomb friction coefficient
 
- 
 
-