Back to index

salome-geom  6.5.0
Public Types | Public Member Functions | Private Member Functions
GEOMImpl_IShapes Class Reference

#include <GEOMImpl_IShapes.hxx>

List of all members.

Public Types

enum  {
  SHAPE_ARG_SHAPES = 1, SHAPE_ARG_BASE = 2, SHAPE_ARG_PLANAR = 3, SHAPE_ARG_SUBTYPE = 4,
  SHAPE_ARG_INDICES = 5, SHAPE_ARG_TOLERANCE = 6, SHAPE_ARG_ANGLE_TOL = 7
}

Public Member Functions

 GEOMImpl_IShapes (Handle(GEOM_Function) theFunction)
void SetShapes (const Handle(TColStd_HSequenceOfTransient)&theShapes)
 Handle (TColStd_HSequenceOfTransient) GetShapes()
void SetBase (Handle(GEOM_Function) theRefBase)
 Handle (GEOM_Function) GetBase()
void SetIsPlanar (const Standard_Boolean isPlanarWanted)
Standard_Boolean GetIsPlanar ()
void SetSubShapeType (const Standard_Integer theType)
Standard_Integer GetSubShapeType ()
void SetIndices (const Handle(TColStd_HArray1OfInteger)&theIndices)
 Handle (TColStd_HArray1OfInteger) GetIndices()
void SetTolerance (const Standard_Real theValue)
Standard_Real GetTolerance ()
void SetAngularTolerance (const Standard_Real theValue)
Standard_Real GetAngularTolerance ()

Private Member Functions

 Handle (GEOM_Function) _func

Detailed Description

Definition at line 31 of file GEOMImpl_IShapes.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
SHAPE_ARG_SHAPES 
SHAPE_ARG_BASE 
SHAPE_ARG_PLANAR 
SHAPE_ARG_SUBTYPE 
SHAPE_ARG_INDICES 
SHAPE_ARG_TOLERANCE 
SHAPE_ARG_ANGLE_TOL 

Definition at line 35 of file GEOMImpl_IShapes.hxx.

       {
    SHAPE_ARG_SHAPES    = 1, // for Wire, Shell, Solid and Compound
    SHAPE_ARG_BASE      = 2, // for Face, Solid and Sub-shape
    SHAPE_ARG_PLANAR    = 3, // for Face
    SHAPE_ARG_SUBTYPE   = 4, // for Sub-shape
    SHAPE_ARG_INDICES   = 5, // for Sub-shape
    SHAPE_ARG_TOLERANCE = 6, // linear tolerance (for Wire, Edge)
    SHAPE_ARG_ANGLE_TOL = 7, // angular tolerance (for Edge)
  };

Constructor & Destructor Documentation

Definition at line 45 of file GEOMImpl_IShapes.hxx.

: _func(theFunction) {}

Member Function Documentation

Standard_Real GEOMImpl_IShapes::GetAngularTolerance ( ) [inline]

Definition at line 82 of file GEOMImpl_IShapes.hxx.

{ return _func->GetReal(SHAPE_ARG_ANGLE_TOL); }

Here is the caller graph for this function:

Standard_Boolean GEOMImpl_IShapes::GetIsPlanar ( ) [inline]

Definition at line 61 of file GEOMImpl_IShapes.hxx.

{ return (_func->GetInteger(SHAPE_ARG_PLANAR) == 1); }

Here is the caller graph for this function:

Standard_Integer GEOMImpl_IShapes::GetSubShapeType ( ) [inline]

Definition at line 66 of file GEOMImpl_IShapes.hxx.

{ return _func->GetInteger(SHAPE_ARG_SUBTYPE); }
Standard_Real GEOMImpl_IShapes::GetTolerance ( ) [inline]

Definition at line 77 of file GEOMImpl_IShapes.hxx.

{ return _func->GetReal(SHAPE_ARG_TOLERANCE); }

Here is the caller graph for this function:

GEOMImpl_IShapes::Handle ( TColStd_HSequenceOfTransient  ) [inline]

Definition at line 50 of file GEOMImpl_IShapes.hxx.

  { return _func->GetReferenceList(SHAPE_ARG_SHAPES); }

Definition at line 56 of file GEOMImpl_IShapes.hxx.

{ return _func->GetReference(SHAPE_ARG_BASE); }
GEOMImpl_IShapes::Handle ( TColStd_HArray1OfInteger  ) [inline]

Definition at line 71 of file GEOMImpl_IShapes.hxx.

  { return _func->GetIntegerArray(SHAPE_ARG_INDICES); }
void GEOMImpl_IShapes::SetAngularTolerance ( const Standard_Real  theValue) [inline]

Definition at line 79 of file GEOMImpl_IShapes.hxx.

  { _func->SetReal(SHAPE_ARG_ANGLE_TOL, theValue); }
void GEOMImpl_IShapes::SetBase ( Handle(GEOM_Function theRefBase) [inline]

Definition at line 53 of file GEOMImpl_IShapes.hxx.

  { _func->SetReference(SHAPE_ARG_BASE, theRefBase); }
void GEOMImpl_IShapes::SetIndices ( const Handle(TColStd_HArray1OfInteger)&  theIndices) [inline]

Definition at line 68 of file GEOMImpl_IShapes.hxx.

  { _func->SetIntegerArray(SHAPE_ARG_INDICES, theIndices); }
void GEOMImpl_IShapes::SetIsPlanar ( const Standard_Boolean  isPlanarWanted) [inline]

Definition at line 58 of file GEOMImpl_IShapes.hxx.

  { _func->SetInteger(SHAPE_ARG_PLANAR, isPlanarWanted ? 1 : 0); }
void GEOMImpl_IShapes::SetShapes ( const Handle(TColStd_HSequenceOfTransient)&  theShapes) [inline]

Definition at line 47 of file GEOMImpl_IShapes.hxx.

  { _func->SetReferenceList(SHAPE_ARG_SHAPES, theShapes); }
void GEOMImpl_IShapes::SetSubShapeType ( const Standard_Integer  theType) [inline]

Definition at line 63 of file GEOMImpl_IShapes.hxx.

  { _func->SetInteger(SHAPE_ARG_SUBTYPE, theType); }
void GEOMImpl_IShapes::SetTolerance ( const Standard_Real  theValue) [inline]

Definition at line 74 of file GEOMImpl_IShapes.hxx.

  { _func->SetReal(SHAPE_ARG_TOLERANCE, theValue); }

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