Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_PolyLineSet Class Reference

Defines a polygonal shape consisting of polylines. More...

#include <cadex/ModelData_PolyLineSet.hxx>

Inheritance diagram for cadex::ModelData_PolyLineSet:
cadex::ModelData_PolyVertexSet cadex::ModelData_PolyShape cadex::ModelData_BaseObject

Public Types

typedef cadex::internal::ModelData_PolyLineSetImpl ImplType
 
- Public Types inherited from cadex::ModelData_PolyVertexSet
typedef int IndexType
 Type of indices.
 
typedef cadex::internal::cadex_vector< IndexType >::type IndexVecType
 
typedef ModelData_Point CoordType
 
typedef ModelData_Color ColorType
 
- Public Types inherited from cadex::ModelData_BaseObject
typedef int IdType
 Defines a type identifier.
 

Public Member Functions

 ModelData_PolyLineSet (initialized)
 
 ModelData_PolyLineSet (ImplType *theImpl)
 Constructor (reserved for internal use).
 
IndexType NumberOfVertices (IndexType thePolyline) const
 Returns a number of vertices in a polyline.
 
IndexType NumberOfPolyLines () const
 Returns a number of polylines.
 
const CoordTypeCoordinate (IndexType thePolyline, IndexType theVertexSlot) const
 Returns a vertex coordinate.
 
void AddPolyLine (const CoordType *theVertices, size_t theSize)
 Adds a polyline into the set.
 
void AddPolyLines (const ModelData_PolyLineSet &theSet)
 Adds all polylines from another set.
 
IndexType NumberOfVertices () const
 
const CoordTypeCoordinate (IndexType theVertexIndex) const
 Returns a vertex coordinate.
 
- Public Member Functions inherited from cadex::ModelData_PolyVertexSet
void SetAppearance (const ModelData_Appearance &theAppearance)
 
ModelData_Appearance Appearance () const
 
const CoordTypeCoordinate (IndexType theVertexIndex) const
 Returns a vertex coordinate.
 
bool HasColors () const
 
const ColorTypeColor (IndexType theIndex) const
 
IndexType NumberOfVertices () const
 
IndexType NumberOfColors () const
 Returns a number of unique colors.
 
bool IsEmpty () const
 
- Public Member Functions inherited from cadex::ModelData_PolyShape
 ModelData_PolyShape ()
 Constructor.
 
- Public Member Functions inherited from cadex::ModelData_BaseObject
 ModelData_BaseObject ()
 Constructor.
 
IdType TypeId () const
 Returns an object type id.
 
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T.
 
void SetName (const Base_UTF16String &theName)
 Sets an object name.
 
Base_UTF16String Name () const
 
void SetUuid (const Base_Uuid &theUuid)
 
Base_Uuid Uuid () const
 
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::ModelData_BaseObjectImpl * Impl () const
 Return a handle to backend (reserved for internal use).
 

Static Public Member Functions

static IdType GetTypeId ()
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::ModelData_PolyVertexSet
 ModelData_PolyVertexSet (internal::ModelData_BaseObjectImpl *theImpl)
 Constructor (reserved for internal use).
 
- Protected Member Functions inherited from cadex::ModelData_PolyShape
 ModelData_PolyShape (const internal::ModelData_BaseObjectImpl *theImpl)
 Constructor (reserved for internal use).
 
- Protected Member Functions inherited from cadex::ModelData_BaseObject
 ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl)
 Constructor (reserved for internal use).
 
 ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Member Function Documentation

◆ AddPolyLine()

void cadex::ModelData_PolyLineSet::AddPolyLine ( const CoordType theVertices,
size_t  theSize 
)

Adds a polyline into the set.

Adds points into a point set.

Examples
modeling/poly/main.cxx.

◆ Coordinate()

const ModelData_PolyLineSet::CoordType & cadex::ModelData_PolyLineSet::Coordinate ( IndexType  thePolyline,
IndexType  theVertexSlot 
) const

Returns a vertex coordinate.

For IsNull() object behavior is undefined.

Examples
exploring/polyrepresentation/Program.cs, and exploring/polyrepresentation/main.cxx.