API Reference > OdDg Classes > OdDgGraphicsElement Class
OdDgGraphicsElement Class
OdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElementOdDgGraphicsElement
Syntax
C++
class OdDgGraphicsElement : public OdDgElement;

DgGraphicsElement.h

Corresponding C++ library: TG_Db 

 

 
Name 
Description 
 
element class: primary stands for most commonly used entities (like geometry primitives) 
 
Name 
Description 
 
 
 
The method returns the element class property. See Class enumeration ocumentation for more details. 
 
details This ones are similar to get/setColorIndex() but use color tables to find/create indexed colors. 
 
Operate with color indices. See OdDg::ColorIndexConstants for some special values. See OdDgColorTable for the methods to translate indices to RGB values and back 
 
Operate with element fills. 
 
 
 
 
 
 
 
The method returns the entry id of the graphics group. 
 
Operate with element hatch pattern. 
 
The H-bit means the following:
  • It indicates whether the element is a solid or a hole for closed element types as shape, complex shape, ellipse, cone, B-spline surface header, and closed B-spline curve header:
    • false is Solid
    • true is Hole
  • For a cell header if the H-bit is
    • false = Header for a cell
    • true = Header for an orphan cell
  • For a a line:
    • false = Line segment
    • true = Infinite-length line
  • For a point string element:
    • false = Continuous
    • true = Disjoint
The H-bit has no meaning in other elements. 
 
Returns the visibility status of this graphic element. 
 
details 
 
 
 
Operate with line styles. See OdDg::LineStyleConstants for some special values. 
 
 
 
Operate with line weights. See OdDg::LineWeightConstants for some special values. 
 
 
 
 
 
 
 
 
 
 
 
Returns the transparency setting of this entity. 
 
 
 
This is the overview for the intersectWith method overload. 
 
Operate with materials. 
 
list 
 
 
Sets the bit flag indicating the element's geometry is changed.
 
 
The method changes the element class property. See Class enumeration ocumentation for more details. 
 
This is the overview for the setColor method overload. 
 
 
 
 
 
 
 
 
 
The method changes the graphics group entry id of the current element. 
 
 
 
 
 
Sets the visibility status of this graphic element.
 
 
 
 
 
 
 
 
 
 
 
 
This is the overview for the setMaterial method overload. 
 
 
 
 
 
 
 
 
 
Sets the transparency setting of this entity, and returns eOk if successful.
 
 
 
 
Called as the first operation as this object is being erased or unerased.
 
 
This is the overview for the subGetGeomExtents method overload. 
 
This is the overview for the subIntersectWith method overload. 
 
 
 
OdGiDrawable overridden 
 
Called by setDatabaseDefaults() after the values are set.
 
 
it should be called by any object that could have common auxiliary drawable properties (e.c., patterns) 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.