IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Graphic object, a tree - like collection of graphic primitives. More...
Public Member Functions | |
virtual void | Add (GraphicPrimitive primitive) |
Adds a graphic primitive to the object. More... | |
virtual void | Add (GraphicObject grobject) |
Adds a child graphic object to the current objects. More... | |
virtual GraphicObject | GetDirectChildObject (int i) |
Returns tha direct child object No. i. More... | |
virtual void | AddChildObject (GraphicObject grobject) |
Adds a child object to the graphic object. More... | |
virtual GraphicPrimitive | GetDirectPrimitive (int i) |
Returns the primitive No. i that is directly contained on this graphic object. Primitives contained in descendant objects are excluded. More... | |
Properties | |
virtual GraphicObject | Parent [get, set] |
Gets the parent object of this object (if there exists). More... | |
virtual int | NumDirectChildObjects [get] |
Gets the number of child objects of the current element (descendants of higher leval are excluded). More... | |
virtual int | NumObjects [get] |
Gets the total number of descendant objects. More... | |
virtual int | NumDirectPrimitives [get] |
Gets the number of graphic primitives directly contained in this object. This does NOT include the primitive contained in descendant objects. More... | |
virtual int | NumPrimitives [get] |
Gets the total number of graphic primitives contained in this object, which includes primitives of all descendant graphic objects. More... | |
virtual GrPrimitiveSettings | Settings [get, protected set] |
Gets the primitive's internal graphic properties (such as color, etc.) More... | |
virtual GrPrimitiveSettings | EffectiveSettings [get] |
Private Attributes | |
GraphicObject | _parent = null |
List< GraphicObject > | _childobjects = new List<GraphicObject>() |
List< GraphicPrimitive > | _primitives = new List<GraphicPrimitive>() |
GrPrimitiveSettings | _settings = null |
Graphic object, a tree - like collection of graphic primitives.
|
inlinevirtual |
Adds a graphic primitive to the object.
|
inlinevirtual |
Adds a child graphic object to the current objects.
grobject | Graphic object that is added as a child object. |
|
inlinevirtual |
Returns tha direct child object No. i.
i | Index of the child object to return. |
IndexOutOfRangeException | When index is out of range. |
|
inlinevirtual |
Adds a child object to the graphic object.
|
inlinevirtual |
Returns the primitive No. i that is directly contained on this graphic object. Primitives contained in descendant objects are excluded.
i | Zero-based index of the primitive. |
ArgumentOutOfRangeException | When index is out of range. |
|
private |
|
private |
|
private |
|
private |
|
getset |
Gets the parent object of this object (if there exists).
|
get |
Gets the number of child objects of the current element (descendants of higher leval are excluded).
|
get |
Gets the total number of descendant objects.
|
get |
Gets the number of graphic primitives directly contained in this object. This does NOT include the primitive contained in descendant objects.
|
get |
Gets the total number of graphic primitives contained in this object, which includes primitives of all descendant graphic objects.
|
getprotected set |
Gets the primitive's internal graphic properties (such as color, etc.)
|
get |