IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Gr.GraphicSetBase Class Reference

Base class for graphic sets that contain groups of graphic primitives. More...

+ Collaboration diagram for IG.Gr.GraphicSetBase:

Public Member Functions

IGraphicSet GetChildSet (int i)
 Returns the specified child graphic set contained in the current graphic set. More...
 
IGraphicPrimitive GetChildPrimitive (int i)
 Returns the specified child graphic primitive contained in the current graphic set. More...
 
virtual void ReCalculateBounds (bool recursive)
 Recalculates the bounding box of the current graphic set. More...
 
virtual void RecalculateBounds ()
 

Properties

IGraphicSet Parent [get, protected set]
 
int NumGraphicSets [get]
 Gets number of child graphic sets directly contained in the current graphic set. More...
 
int NumGraphicPrimitives [get]
 Gets number of child graphic primitives directly contained in the current graphic set. More...
 
IBoundingBox Bounds [get]
 

Private Attributes

IGraphicSet _parent
 
List< IGraphicSet_childSets = new List<IGraphicSet>()
 
List< IGraphicPrimitive_childPrimitives = new List<IGraphicPrimitive>()
 
BoundingBox3d _bounds = new BoundingBox3d()
 

Detailed Description

Base class for graphic sets that contain groups of graphic primitives.

$A Igor Mar10 Nov10;

Member Function Documentation

IGraphicSet IG.Gr.GraphicSetBase.GetChildSet ( int  i)
inline

Returns the specified child graphic set contained in the current graphic set.

Parameters
iIndex of the child graphic set.
IGraphicPrimitive IG.Gr.GraphicSetBase.GetChildPrimitive ( int  i)
inline

Returns the specified child graphic primitive contained in the current graphic set.

Parameters
iIndex of the child graphic primitive.
virtual void IG.Gr.GraphicSetBase.ReCalculateBounds ( bool  recursive)
inlinevirtual

Recalculates the bounding box of the current graphic set.

Parameters
recursiveIf true then bounds of sub-sets are re-calculated recursively.
virtual void IG.Gr.GraphicSetBase.RecalculateBounds ( )
inlinevirtual

Member Data Documentation

IGraphicSet IG.Gr.GraphicSetBase._parent
private
List<IGraphicSet> IG.Gr.GraphicSetBase._childSets = new List<IGraphicSet>()
private
List<IGraphicPrimitive> IG.Gr.GraphicSetBase._childPrimitives = new List<IGraphicPrimitive>()
private
BoundingBox3d IG.Gr.GraphicSetBase._bounds = new BoundingBox3d()
private

Property Documentation

IGraphicSet IG.Gr.GraphicSetBase.Parent
getprotected set
int IG.Gr.GraphicSetBase.NumGraphicSets
get

Gets number of child graphic sets directly contained in the current graphic set.

int IG.Gr.GraphicSetBase.NumGraphicPrimitives
get

Gets number of child graphic primitives directly contained in the current graphic set.

IBoundingBox IG.Gr.GraphicSetBase.Bounds
getprivate

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