Defines an outline consist of curves. More...
#include <cadex/ModelData_PMIOutline.hxx>
Public Types | |
typedef cadex::internal::ModelData_PMICurveOutlineImpl | ImplType |
Public Member Functions | |
ModelData_PMICurveOutline () | |
Constructor. | |
ModelData_PMICurveOutline (ImplType *theImpl) | |
void | Append (const ModelData_Curve &theCurve) |
Appends a curve. | |
bool | IsEmpty () const |
Returns true if no curves have been added. | |
size_t | NumberOfCurves () const |
Returns number of added curves. | |
const ModelData_Curve & | Curve (size_t theIndex) const |
Returns a specified curve. | |
Public Member Functions inherited from cadex::ModelData_PMIOutline | |
ModelData_PMIOutline () | |
Constructor. | |
void | Accept (ModelData_PMIOutlineVisitor &theVisitor) const |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
Public Member Functions inherited from cadex::Base_PublicObject | |
void | Nullify () |
Resets reference to implementation object. | |
bool | IsNull () const |
Returns true if the object is nullified. | |
operator bool () const | |
Casts the object to the bool type. | |
internal::Base_HandledObject * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static bool | CompareType (const ModelData_PMIOutline &theOutline) |
Returns true if theOutline has ModelData_PMICurveOutline type. | |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::ModelData_PMIOutline | |
ModelData_PMIOutline (internal::ModelData_PMIOutlineImpl *theImpl) | |
Constructor. | |
Protected Member Functions inherited from cadex::Base_PublicObject | |
Base_PublicObject (const internal::Base_HandledObject *theObject) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines an outline consist of curves.
cadex::ModelData_PMICurveOutline::ModelData_PMICurveOutline | ( | ) |
Constructor.
Creates a null object (see IsNull()).
const ModelData_Curve & cadex::ModelData_PMICurveOutline::Curve | ( | size_t | theIndex | ) | const |
Returns a specified curve.
theIndex must be in the range [0, NumberOfCurves()-1]. Otherwise the result is undefined.
Must not be called on IsNull() object. Otherwise behavior is undefined.
bool cadex::ModelData_PMICurveOutline::IsEmpty | ( | ) | const |
Returns true if no curves have been added.
Returns true if IsNull().
size_t cadex::ModelData_PMICurveOutline::NumberOfCurves | ( | ) | const |
Returns number of added curves.
Returns 0 if IsNull().