OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Geometry::CubicBezierCurve Class Reference
Inheritance diagram for Geometry::CubicBezierCurve:
[legend]

Public Member Functions

 CubicBezierCurve (const Coord3 &, const Coord3 &, int firstparam=0, int step=1)
 
CubicBezierCurveclone () const
 
IntervalND< float > boundingBox (bool) const
 
Coord3 computePosition (float) const
 
Coord3 computeTangent (float) const
 
StepInterval< int > parameterRange () const
 
Coord3 getPosition (GeomPosID) const
 
bool setPosition (GeomPosID, const Coord3 &)
 
bool unsetPosition (GeomPosID)
 
bool insertPosition (GeomPosID, const Coord3 &)
 
bool removePosition (GeomPosID)
 
bool isDefined (GeomPosID) const
 
Coord3 getBezierVertex (GeomPosID, bool before) const
 
Coord3 getTangent (GeomPosID, bool computeifudf) const
 
bool setTangent (GeomPosID, const Coord3 &)
 
bool unsetTangent (GeomPosID)
 
bool isTangentDefined (GeomPosID) const
 
float directionInfluence () const
 
void setTangentInfluence (float)
 
bool isCircular () const
 
bool setCircular (bool yn)
 
- Public Member Functions inherited from Geometry::ParametricCurve
virtual bool findClosestPosition (float &p, const Coord3 &, float eps=1e-2) const
 
virtual bool findClosestIntersection (float &p, const Plane3 &, float eps=1e-2) const
 
void getPosIDs (TypeSet< GeomPosID > &, bool=true) const
 
IteratorcreateIterator () const
 
- Public Member Functions inherited from Geometry::Element
 Element ()
 
virtual ~Element ()
 
virtual uiString errMsg () const
 
virtual bool isChanged () const
 
virtual void resetChangedFlag ()
 
virtual void trimUndefParts ()
 
void blockCallBacks (bool yn, bool flush=true)
 
bool blocksCallBacks () const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Member Functions

int getIndex (GeomPosID param) const
 
Coord3 computeTangent (GeomPosID) const
 
- Protected Member Functions inherited from Geometry::Element
void triggerMovement (const TypeSet< GeomPosID > &)
 
void triggerMovement (const GeomPosID &)
 
void triggerMovement ()
 
void triggerNrPosCh (const TypeSet< GeomPosID > &)
 
void triggerNrPosCh (const GeomPosID &)
 
void triggerNrPosCh ()
 
uiStringerrmsg ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

int firstparam
 
int paramstep
 
TypeSet< Coord3positions
 
TypeSet< Coord3directions
 
float directioninfluence
 
bool iscircular
 
- Protected Attributes inherited from Geometry::Element
bool blockcbs_
 
TypeSet< GeomPosIDnrposchbuffer_
 
TypeSet< GeomPosIDmovementbuffer_
 
bool ischanged_
 

Private Member Functions

 mODTextTranslationClass (CubicBezierCurve)
 

Additional Inherited Members

- Public Attributes inherited from Geometry::Element
CNotifier< Element, const TypeSet< GeomPosID > * > movementnotifier
 
CNotifier< Element, const TypeSet< GeomPosID > * > nrpositionnotifier
 

Detailed Description

Constructor & Destructor Documentation

Geometry::CubicBezierCurve::CubicBezierCurve ( const Coord3 ,
const Coord3 ,
int  firstparam = 0,
int  step = 1 
)

Member Function Documentation

IntervalND<float> Geometry::CubicBezierCurve::boundingBox ( bool  ) const
virtual

Reimplemented from Geometry::Element.

CubicBezierCurve* Geometry::CubicBezierCurve::clone ( ) const
virtual

Implements Geometry::Element.

Coord3 Geometry::CubicBezierCurve::computePosition ( float  ) const
virtual

Computes the position between two samples

Implements Geometry::ParametricCurve.

Coord3 Geometry::CubicBezierCurve::computeTangent ( float  ) const
virtual
Note
the tangent is scaled so the components (x, y, z) forms the derivatives: (dx/du, dy/du, dz/du ).

Implements Geometry::ParametricCurve.

Coord3 Geometry::CubicBezierCurve::computeTangent ( GeomPosID  ) const
protected
float Geometry::CubicBezierCurve::directionInfluence ( ) const
Coord3 Geometry::CubicBezierCurve::getBezierVertex ( GeomPosID  ,
bool  before 
) const
int Geometry::CubicBezierCurve::getIndex ( GeomPosID  param) const
inlineprotected
Coord3 Geometry::CubicBezierCurve::getPosition ( GeomPosID  ) const
virtual

Implements Geometry::Element.

Coord3 Geometry::CubicBezierCurve::getTangent ( GeomPosID  ,
bool  computeifudf 
) const
bool Geometry::CubicBezierCurve::insertPosition ( GeomPosID  ,
const Coord3  
)
virtual
bool Geometry::CubicBezierCurve::isCircular ( ) const
virtual

If true, the curve is connected between parameterRange().stop and parameterRange().start.

Reimplemented from Geometry::ParametricCurve.

bool Geometry::CubicBezierCurve::isDefined ( GeomPosID  ) const
virtual

Implements Geometry::Element.

bool Geometry::CubicBezierCurve::isTangentDefined ( GeomPosID  ) const
Geometry::CubicBezierCurve::mODTextTranslationClass ( CubicBezierCurve  )
private
StepInterval<int> Geometry::CubicBezierCurve::parameterRange ( ) const
virtual
bool Geometry::CubicBezierCurve::removePosition ( GeomPosID  )

The opposite of insertPosition

bool Geometry::CubicBezierCurve::setCircular ( bool  yn)
bool Geometry::CubicBezierCurve::setPosition ( GeomPosID  ,
const Coord3  
)
virtual

Implements Geometry::Element.

bool Geometry::CubicBezierCurve::setTangent ( GeomPosID  ,
const Coord3  
)
void Geometry::CubicBezierCurve::setTangentInfluence ( float  )
bool Geometry::CubicBezierCurve::unsetPosition ( GeomPosID  )

Sets position to undefined

bool Geometry::CubicBezierCurve::unsetTangent ( GeomPosID  )

Member Data Documentation

float Geometry::CubicBezierCurve::directioninfluence
protected
TypeSet<Coord3> Geometry::CubicBezierCurve::directions
protected
int Geometry::CubicBezierCurve::firstparam
protected
bool Geometry::CubicBezierCurve::iscircular
protected
int Geometry::CubicBezierCurve::paramstep
protected
TypeSet<Coord3> Geometry::CubicBezierCurve::positions
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019