Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
body::IBodyEdge Class Referenceabstract

Public Member Functions

virtual const IThinggetIThing () const =0
 returns a const IThing pointer
 
virtual IThinggetIThing ()=0
 returns a IThing pointer
 
virtual uint32 setZoneSize (uint32 s, bool maintainFactor=false)=0
 set (zone size) and returns counts of successfull zonesizes set (propagation assumed)
 
virtual uint32 getZoneSize () const =0
 return zone size for the edge
 
virtual void zoneSize (uint32 s)=0
 Set zone ratio for the edge (propagation)
 
virtual uint32 setRatio (const double &r)=0
 Set zone ratio on edge. Returns counts (propagation depends on setRatioIsolate flag)
 
virtual double getRatio () const =0
 Return zone ratio of the edge.
 
virtual double getFactor () const =0
 Return zone factor of the edge (ratio of zone-lengths last over first)
 
virtual uint32 setFactor (const double &r)=0
 
virtual void setRatioIsolate (bool b)=0
 Set zone ratio isolate flag (Stops propagating ratios by connected blocks)
 
virtual bool getRatioIsolate () const =0
 Return ratio isolate flag.
 
virtual bool getGUIselect () const =0
 return GUI specific select flag
 
virtual void setGUIselect (bool flag) const =0
 set GUI specific select flag
 
virtual int getCurveType () const =0
 get type of interpolating curve 0 - polyline, 1- CircleArc, 2-Spline
 
virtual void setCurveType (uint32 type)=0
 sets interpolating curve type : 0 - polyline, 1- CircleArc, 2-Spline
 
virtual uint32 getControlPointsSize () const =0
 returns number of control points
 
virtual double getCurveLength () const =0
 returns total length of curved edge
 
virtual int addControlPoint (const DVect &pos)=0
 
virtual void addControlPointAtPosition (const DVect &pos)=0
 calls addControlPoint() and then puts the point at the specified position
 
virtual void removeControlPoint (uint32 ind)=0
 remove control point from the edge at index=ind;
 
virtual DVect getControlPointPosition (uint32 index) const =0
 get control point position
 
virtual void setControlPointPosition (uint32 ind, const DVect &pos)=0
 set control point new position
 
virtual uint32 getControlPointIndex (const DVect &pos) const =0
 get index to control point from the position in space (clossest
 
virtual uint32 getControlPointIndex (double u) const =0
 get index to control point from the position in space
 
virtual double closestWithSegment (const DVect &a1, const DVect &a2, DVect &segmentPos, DVect &edgeCurvePos) const =0
 return closest distance and points of curved edge with the segment (a1,a2)
 
virtual double closestWithRay (const DVect &a1, const DVect &direction, DVect &rayPos, DVect &edgeCurvePos) const =0
 return closest distance and points of curved edge with the ray (a1,direction). Vector direction must be non-zero length.
 
virtual double getControlPointU (uint32 index) const =0
 return local corrdinate (parameter U) of a control point of the edge. Index must be in [1,getControlPointsSize()].
 

Static Public Attributes

static const TType type_ =0x54d4ede7
 The type identification number for this class, for use in convert_cast() and convert_getcast().
 

Member Function Documentation

◆ addControlPoint()

virtual int body::IBodyEdge::addControlPoint ( const DVect & pos)
pure virtual

add control point - adds the point to the closest position on the edge without changing the shape of the edge; returns the index to the newly added point, or -1

◆ setFactor()

virtual uint32 body::IBodyEdge::setFactor ( const double & r)
pure virtual

Sets zone factor of the edge (ratio of zone-lengths last over first) Returns counts (propagation depends on setRatioIsolate flag)


The documentation for this class was generated from the following file: