Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CurveCreator_ICurve Class Referenceabstract

The CurveCreator_ICurve object is represented as one or more sets of connected points; thus CurveCreator_ICurve object can contain several not connected curves (polylines or b-splines), each such curve has two only ends "start and end points" in other words non-manifold curves are not supported.

#include <CurveCreator_ICurve.hxx>

Inheritance diagram for CurveCreator_ICurve:
Inheritance graph

Public Types

typedef std::pair< int, int > SectionToPoint
 
typedef std::deque
< SectionToPoint
SectionToPointList
 
typedef std::deque< std::pair
< SectionToPoint,
CurveCreator::Coordinates > > 
SectionToPointCoordsList
 

Public Member Functions

virtual ~CurveCreator_ICurve ()
 The destructor. More...
 
virtual int getNbUndo () const =0
 Get number of available undo operations. More...
 
virtual bool undo ()=0
 Undo previous operation. More...
 
virtual int getNbRedo () const =0
 Get number of available redo operations. More...
 
virtual bool redo ()=0
 Redo last previously "undone" operation. More...
 
virtual bool clear ()=0
 Clear the polyline (remove all sections) More...
 
virtual bool join (const std::list< int > &theSections)=0
 Join list of sections to one section (join all if the list is empty) More...
 
virtual int getNbSections () const =0
 Get number of sections. More...
 
virtual int addSection (const std::string &theName, const CurveCreator::SectionType theType, const bool theIsClosed)=0
 Add a new section. More...
 
virtual bool removeSection (const int theISection)=0
 Removes the given sections. More...
 
virtual bool isClosed (const int theISection) const =0
 Get "closed" flag of the specified section. More...
 
virtual bool setClosed (const int theISection, const bool theIsClosed)=0
 Set "closed" flag of the specified section (all sections if theISection is -1). More...
 
virtual std::string getSectionName (const int theISection) const =0
 Returns specifyed section name. More...
 
virtual bool setSectionName (const int theISection, const std::string &theName)=0
 Set name of the specified section. More...
 
virtual CurveCreator::SectionType getSectionType (const int theISection) const =0
 Get type of the specified section. More...
 
virtual bool setSectionType (const int theISection, const CurveCreator::SectionType theType)=0
 Set type of the specified section (or all sections if theISection is -1). More...
 
virtual const
CurveCreator_ISection
getSection (const int theSectionIndex) const =0
 Returns the curve section with the index. More...
 
virtual CurveCreator_ISectiongetSection (const int theSectionIndex)=0
 Returns the curve section with the index. More...
 
virtual CurveCreator::Dimension getDimension () const =0
 Get the dimension. More...
 
virtual bool addPoints (const CurveCreator::Coordinates &theCoords, const int theISection, const int theIPnt=-1)=0
 Insert one or several points to the specified section starting from the given theIPnt index (or add these at the end of section points if theIPnt is -1). More...
 
virtual bool setPoint (const int theISection, const int theIPnt, const CurveCreator::Coordinates &theNewCoords)=0
 Set coordinates of specified point. More...
 
virtual bool setSeveralPoints (const SectionToPointCoordsList &theSectionToPntCoords, const bool theIsToSaveDiff=true)=0
 Set coordinates of specified points from different sections. More...
 
virtual bool removePoint (const int theISection, const int theIPnt=-1)=0
 Remove point with given id. More...
 
virtual bool removeSeveralPoints (const SectionToPointList &theSectionToPntIDs)=0
 Remove several points from different sections. More...
 
virtual CurveCreator::Coordinates getPoint (const int theISection, const int theIPnt) const =0
 Get coordinates of specified point. More...
 
virtual CurveCreator::Coordinates getPoints (const int theISection=-1) const =0
 Get points of a section (the total points in Curve if theISection is equal to -1). More...
 
virtual int getNbPoints (const int theISection) const =0
 Get number of points in specified section or (the total number of points in Curve if theISection is equal to -1). More...
 
virtual void setSkipSorting (const bool)=0
 Set skip sorting flag. More...
 
virtual bool canPointsBeSorted ()=0
 Indicates whether the points can be sorted. More...
 
virtual void saveCoordDiff (const SectionToPointCoordsList &theOldCoords)=0
 Saves points coordinates difference. More...
 
virtual Handle (AIS_InteractiveObject) getAISObject(const bool theNeedToBuild
 

Protected Member Functions

virtual void constructAISObject ()=0
 

Member Typedef Documentation

typedef std::pair<int,int> CurveCreator_ICurve::SectionToPoint

Constructor & Destructor Documentation

virtual CurveCreator_ICurve::~CurveCreator_ICurve ( )
inlinevirtual

Member Function Documentation

virtual bool CurveCreator_ICurve::addPoints ( const CurveCreator::Coordinates theCoords,
const int  theISection,
const int  theIPnt = -1 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual int CurveCreator_ICurve::addSection ( const std::string &  theName,
const CurveCreator::SectionType  theType,
const bool  theIsClosed 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::canPointsBeSorted ( )
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::clear ( )
pure virtual

Implemented in CurveCreator_Curve.

virtual void CurveCreator_ICurve::constructAISObject ( )
protectedpure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator::Dimension CurveCreator_ICurve::getDimension ( ) const
pure virtual

Implemented in CurveCreator_Curve.

virtual int CurveCreator_ICurve::getNbPoints ( const int  theISection) const
pure virtual

Implemented in CurveCreator_Curve.

virtual int CurveCreator_ICurve::getNbRedo ( ) const
pure virtual

Implemented in CurveCreator_Curve.

virtual int CurveCreator_ICurve::getNbSections ( ) const
pure virtual

Implemented in CurveCreator_Curve.

virtual int CurveCreator_ICurve::getNbUndo ( ) const
pure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator::Coordinates CurveCreator_ICurve::getPoint ( const int  theISection,
const int  theIPnt 
) const
pure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator::Coordinates CurveCreator_ICurve::getPoints ( const int  theISection = -1) const
pure virtual

Implemented in CurveCreator_Curve.

virtual const CurveCreator_ISection* CurveCreator_ICurve::getSection ( const int  theSectionIndex) const
pure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator_ISection* CurveCreator_ICurve::getSection ( const int  theSectionIndex)
pure virtual

Implemented in CurveCreator_Curve.

virtual std::string CurveCreator_ICurve::getSectionName ( const int  theISection) const
pure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator::SectionType CurveCreator_ICurve::getSectionType ( const int  theISection) const
pure virtual

Implemented in CurveCreator_Curve.

virtual CurveCreator_ICurve::Handle ( AIS_InteractiveObject  ) const
virtual

Reimplemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::isClosed ( const int  theISection) const
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::join ( const std::list< int > &  theSections)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::redo ( )
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::removePoint ( const int  theISection,
const int  theIPnt = -1 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::removeSection ( const int  theISection)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::removeSeveralPoints ( const SectionToPointList theSectionToPntIDs)
pure virtual

Implemented in CurveCreator_Curve.

virtual void CurveCreator_ICurve::saveCoordDiff ( const SectionToPointCoordsList theOldCoords)
pure virtual
Parameters
theOldCoordsthe old points coordinates

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::setClosed ( const int  theISection,
const bool  theIsClosed 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::setPoint ( const int  theISection,
const int  theIPnt,
const CurveCreator::Coordinates theNewCoords 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::setSectionName ( const int  theISection,
const std::string &  theName 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::setSectionType ( const int  theISection,
const CurveCreator::SectionType  theType 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::setSeveralPoints ( const SectionToPointCoordsList theSectionToPntCoords,
const bool  theIsToSaveDiff = true 
)
pure virtual

Implemented in CurveCreator_Curve.

virtual void CurveCreator_ICurve::setSkipSorting ( const bool  )
pure virtual

If the flag is true - points sorting will be skipped.

Implemented in CurveCreator_Curve.

virtual bool CurveCreator_ICurve::undo ( )
pure virtual

Implemented in CurveCreator_Curve.


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