Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
IGESDraw_Drawing Class Reference

defines IGESDrawing, Type <404> Form <0>
in package IGESDraw

Specifies a drawing as a collection of annotation entities
defined in drawing space, and views which together
constitute a single representation of a part

#include <IGESDraw_Drawing.hxx>

Inheritance diagram for IGESDraw_Drawing:
Inheritance graph
[legend]

Public Member Functions

 IGESDraw_Drawing ()
void Init (const Handle< IGESDraw_HArray1OfViewKindEntity > &allViews, const Handle< TColgp_HArray1OfXY > &allViewOrigins, const Handle< IGESData_HArray1OfIGESEntity > &allAnnotations)
 This method is used to set the fields of the class
Drawing

Standard_Integer NbViews () const
 returns the number of view pointers in <me>

Handle_IGESData_ViewKindEntity ViewItem (const Standard_Integer ViewIndex) const
 returns the ViewKindEntity indicated by ViewIndex
raises an exception if ViewIndex <= 0 or ViewIndex > NbViews().

gp_Pnt2d ViewOrigin (const Standard_Integer TViewIndex) const
 returns the Drawing space coordinates of the origin of the
Transformed view indicated by TViewIndex
raises an exception if TViewIndex <= 0 or TViewIndex > NbViews().

Standard_Integer NbAnnotations () const
 returns the number of Annotation entities in <me>

Handle_IGESData_IGESEntity Annotation (const Standard_Integer AnnotationIndex) const
 returns the Annotation entity in this Drawing, indicated by the
AnnotationIndex
raises an exception if AnnotationIndex <= 0 or
AnnotationIndex > NbAnnotations().

gp_XY ViewToDrawing (const Standard_Integer NumView, const gp_XYZ &ViewCoords) const
Standard_Boolean DrawingUnit (Standard_Real &value) const
 Returns the Drawing Unit Value if it is specified (by a
specific property entity)
If not specified, returns False, and val as zero :
unit to consider is then the model unit in GlobalSection

Standard_Boolean DrawingSize (Standard_Real &X, Standard_Real &Y) const
 Returns the Drawing Size if it is specified (by a
specific property entity)
If not specified, returns False, and X,Y as zero :
unit to consider is then the model unit in GlobalSection


Constructor & Destructor Documentation


Member Function Documentation

Handle_IGESData_IGESEntity IGESDraw_Drawing::Annotation ( const Standard_Integer  AnnotationIndex) const
- allViews       : Pointers to DEs of View entities <br>
- allViewOrigins : Origin coordinates of transformed Views <br>
- allAnnotations : Pointers to DEs of Annotation entities <br>

raises exception if Lengths of allViews and allViewOrigins are
not same.

Handle_IGESData_ViewKindEntity IGESDraw_Drawing::ViewItem ( const Standard_Integer  ViewIndex) const

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