CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGiEdgeData Class Reference

#include <GiGeometry.h>

Inheritance diagram for OdGiEdgeData:
OdGiEdgeDataStorage

Public Member Functions

 OdGiEdgeData ()
 
void setColors (const OdUInt16 *colors)
 
void setTrueColors (const OdCmEntityColor *colors)
 
void setLayers (OdDbStub **layerIds)
 
void setLinetypes (OdDbStub **linetypeIds)
 
void setSelectionMarkers (const OdGsMarker *selectionMarkers)
 
void setVisibility (const OdUInt8 *visibilities)
 
const OdUInt16colors () const
 
const OdCmEntityColortrueColors () const
 
OdDbStub ** layerIds () const
 
OdDbStub ** linetypeIds () const
 
const OdGsMarkerselectionMarkers () const
 
const OdUInt8visibility () const
 

Detailed Description

This class represents arrays of edge attributes for meshes and shells.

Remarks
EdgeData objects are optional; they can be optionally passed to OdGiWorldGeometry and OdGiViewportGeometry when using their mesh and shell methods.
Setting an 'improper' size of any array will cause unpredictable or fatal results.
See also
TD_Gi

<group OdGi_Classes>

Definition at line 70 of file GiGeometry.h.

Constructor & Destructor Documentation

◆ OdGiEdgeData()

OdGiEdgeData::OdGiEdgeData ( )
inline

Default constructor for the OdGiEdgeData class. Sets current color index, true color, layer and linetype identifiers, selection markers, visibility objects to NULL.

Definition at line 83 of file GiGeometry.h.

Member Function Documentation

◆ colors()

const OdUInt16 * OdGiEdgeData::colors ( ) const
inline

Returns the array of edge colors used by this object.

Returns
pointer to the array of color indices.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Definition at line 190 of file GiGeometry.h.

◆ layerIds()

OdDbStub ** OdGiEdgeData::layerIds ( ) const
inline

Returns the array of edge LayerTableRecord Object IDs used by this object.

Returns
pointer to the array of layer identifiers.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.
See also
<link tv_working_with_attributes_layers, Work with Layers>

Definition at line 216 of file GiGeometry.h.

◆ linetypeIds()

OdDbStub ** OdGiEdgeData::linetypeIds ( ) const
inline

Returns the array of edge LinetypeTableRecord Object IDs used by this object.

Returns
pointer to the array of linetype identifiers.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Definition at line 230 of file GiGeometry.h.

◆ selectionMarkers()

const OdGsMarker * OdGiEdgeData::selectionMarkers ( ) const
inline

Returns the array of edge graphics system selection markers used by this object.

Returns
pointer to the array of selection markers.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.

Definition at line 242 of file GiGeometry.h.

◆ setColors()

void OdGiEdgeData::setColors ( const OdUInt16 * colors)
inline

Sets the edge colors to be used by this object.

Parameters
colors[in] Array of color indices.
Remarks
You cannot call both setColors() and setTrueColors(). This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Definition at line 103 of file GiGeometry.h.

◆ setLayers()

void OdGiEdgeData::setLayers ( OdDbStub ** layerIds)
inline

Sets the edge Layer Table Records to be used by this object.

Parameters
layerIds[in] Array of LayerTableRecord Object IDs.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.
See also
<link tv_working_with_attributes_layers, Work with Layers>

Definition at line 130 of file GiGeometry.h.

◆ setLinetypes()

void OdGiEdgeData::setLinetypes ( OdDbStub ** linetypeIds)
inline

Sets the edge Linetype Table Records to be used by this object.

Parameters
linetypeIds[in] Array of LinetypeTableRecord Object IDs.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Definition at line 143 of file GiGeometry.h.

◆ setSelectionMarkers()

void OdGiEdgeData::setSelectionMarkers ( const OdGsMarker * selectionMarkers)
inline

Sets the edge graphics system selection markers to be used by this object.

Parameters
selectionMarkers[in] Array of graphics system selection markers.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.

Definition at line 154 of file GiGeometry.h.

◆ setTrueColors()

void OdGiEdgeData::setTrueColors ( const OdCmEntityColor * colors)
inline

Sets the edge colors to be used by this object.

Parameters
colors[in] Array of OdCmEntityColor objects.
Remarks
You cannot call both setColors() and setTrueColors(). This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Definition at line 117 of file GiGeometry.h.

◆ setVisibility()

void OdGiEdgeData::setVisibility ( const OdUInt8 * visibilities)
inline

Sets the edge visibilities to be used by this object.

Parameters
visibilities[in] Array of visibility values.
Remarks
Each visibility must be one of the following:

Value Description kOdGiInvisible 0 Invisible kOdGiVisible 1 Visible kOdGiSilhouette 2 Silhouette edge kOdGiJoint 4 Joint open silhouette edge

Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.

Definition at line 176 of file GiGeometry.h.

◆ trueColors()

const OdCmEntityColor * OdGiEdgeData::trueColors ( ) const
inline

Returns the array of edge colors used by this object.

Returns
pointer to the array of colors.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Definition at line 203 of file GiGeometry.h.

◆ visibility()

const OdUInt8 * OdGiEdgeData::visibility ( ) const
inline

Returns the array of edge visibilities used by this object.

Returns
pointer to the array of visibility values.
Remarks
Each visibility must be one of the following:

Value Description kOdGiInvisible 0 Invisible kOdGiVisible 1 Visible kOdGiSilhouette 2 Silhouette edge kOdGiJoint 4 Joint open silhouette edge

Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.

Definition at line 265 of file GiGeometry.h.


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