Back to index

salome-geom  6.5.0
Public Member Functions | Protected Member Functions | Protected Attributes
GEOMAlgo_ShapeInfo Class Reference

#include <GEOMAlgo_ShapeInfo.hxx>

List of all members.

Public Member Functions

Standard_EXPORT GEOMAlgo_ShapeInfo ()
virtual Standard_EXPORT ~GEOMAlgo_ShapeInfo ()
Standard_EXPORT void Reset ()
Standard_EXPORT void SetType (const TopAbs_ShapeEnum aType)
Standard_EXPORT TopAbs_ShapeEnum Type () const
Standard_EXPORT void SetNbSubShapes (const TopAbs_ShapeEnum aType, const Standard_Integer aNb)
Standard_EXPORT Standard_Integer NbSubShapes (const TopAbs_ShapeEnum aType) const
Standard_EXPORT void SetKindOfShape (const GEOMAlgo_KindOfShape aT)
Standard_EXPORT
GEOMAlgo_KindOfShape 
KindOfShape () const
Standard_EXPORT void SetKindOfName (const GEOMAlgo_KindOfName aT)
Standard_EXPORT GEOMAlgo_KindOfName KindOfName () const
Standard_EXPORT void SetKindOfBounds (const GEOMAlgo_KindOfBounds aT)
Standard_EXPORT
GEOMAlgo_KindOfBounds 
KindOfBounds () const
Standard_EXPORT void SetKindOfClosed (const GEOMAlgo_KindOfClosed aT)
Standard_EXPORT
GEOMAlgo_KindOfClosed 
KindOfClosed () const
Standard_EXPORT void SetLocation (const gp_Pnt &aP)
Standard_EXPORT const gp_Pnt & Location () const
Standard_EXPORT void SetDirection (const gp_Dir &aD)
Standard_EXPORT const gp_Dir & Direction () const
Standard_EXPORT void SetPosition (const gp_Ax2 &aAx2)
Standard_EXPORT void SetPosition (const gp_Ax3 &aAx3)
Standard_EXPORT const gp_Ax3 & Position () const
Standard_EXPORT void SetPnt1 (const gp_Pnt &aP)
Standard_EXPORT const gp_Pnt & Pnt1 () const
Standard_EXPORT void SetPnt2 (const gp_Pnt &aP)
Standard_EXPORT const gp_Pnt & Pnt2 () const
Standard_EXPORT void SetRadius1 (const Standard_Real aR)
Standard_EXPORT Standard_Real Radius1 () const
Standard_EXPORT void SetRadius2 (const Standard_Real aR)
Standard_EXPORT Standard_Real Radius2 () const
Standard_EXPORT void SetLength (const Standard_Real aL)
Standard_EXPORT Standard_Real Length () const
Standard_EXPORT void SetWidth (const Standard_Real aW)
Standard_EXPORT Standard_Real Width () const
Standard_EXPORT void SetHeight (const Standard_Real aH)
Standard_EXPORT Standard_Real Height () const
Standard_EXPORT void Dump () const

Protected Member Functions

Standard_EXPORT void DumpVertex () const
Standard_EXPORT void DumpEdge () const
Standard_EXPORT void DumpWire () const
Standard_EXPORT void DumpFace () const
Standard_EXPORT void DumpShell () const
Standard_EXPORT void DumpSolid () const
Standard_EXPORT void DumpCompSolid () const
Standard_EXPORT void DumpCompound () const

Protected Attributes

TopAbs_ShapeEnum myType
Standard_Integer myNbSubShapes [9]
GEOMAlgo_KindOfShape myKindOfShape
GEOMAlgo_KindOfName myKindOfName
GEOMAlgo_KindOfBounds myKindOfBounds
GEOMAlgo_KindOfClosed myKindOfClosed
gp_Pnt myLocation
gp_Dir myDirection
gp_Ax3 myPosition
Standard_Real myRadius1
Standard_Real myRadius2
Standard_Real myLength
Standard_Real myWidth
Standard_Real myHeight
gp_Pnt myPnt1
gp_Pnt myPnt2
Standard_Integer myNbTypes

Detailed Description

Definition at line 44 of file GEOMAlgo_ShapeInfo.hxx.


Constructor & Destructor Documentation

Definition at line 43 of file GEOMAlgo_ShapeInfo.cxx.

{
  Reset();
}

Here is the call graph for this function:

Definition at line 51 of file GEOMAlgo_ShapeInfo.cxx.

{
}

Member Function Documentation

const gp_Dir & GEOMAlgo_ShapeInfo::Direction ( ) const

Definition at line 219 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myDirection;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::Dump ( ) const

Definition at line 376 of file GEOMAlgo_ShapeInfo.cxx.

{
  switch (myType) {
    //
  case TopAbs_VERTEX:
    DumpVertex();
    break;
    //
  case TopAbs_EDGE:
    DumpEdge();
    break;
    //
  case TopAbs_WIRE:
    DumpWire();
    break;
    //
  case TopAbs_FACE:
    DumpFace();
    break;
    //
  case TopAbs_SHELL:
    DumpShell();
    break;
    //
  case TopAbs_SOLID:
    DumpSolid();
    break;
    //
  case TopAbs_COMPSOLID:
    DumpCompSolid();
    break;
    //
  case TopAbs_COMPOUND:
    DumpCompound();
    break;
    //
  default:
    printf(" * not implememted yet\n");
    break;
  }
}

Here is the call graph for this function:

void GEOMAlgo_ShapeInfo::DumpCompound ( ) const [protected]

Definition at line 421 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE, aNbF, aNbS, aNbC, aNbP;
  GEOMAlgo_KindOfShape aKS;
  GEOMAlgo_KindOfName aKN;
  GEOMAlgo_KindOfBounds aKB;
  GEOMAlgo_KindOfClosed aKC;
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  aNbF=NbSubShapes(TopAbs_FACE);
  aNbS=NbSubShapes(TopAbs_SOLID);
  aNbC=NbSubShapes(TopAbs_COMPSOLID);
  aNbP=NbSubShapes(TopAbs_COMPOUND);
  aKS=KindOfShape();
  aKN=KindOfName();
  aKB=KindOfBounds();
  aKC=KindOfClosed();
  //
  printf(" *COMPOUND\n");
  printf("  number of vertices    : %d\n", aNbV);
  printf("  number of edges       : %d\n", aNbE);
  printf("  number of faces       : %d\n", aNbF);
  printf("  number of solids      : %d\n", aNbS);
  printf("  number of compsolids  : %d\n", aNbC);
  printf("  number of compounds   : %d\n", aNbP);
  DumpKindOfShape (aKS);
  DumpKindOfName (aKN);
  DumpKindOfBounds(aKB);
  DumpKindOfClosed(aKC);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpCompSolid ( ) const [protected]

Definition at line 456 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE, aNbF, aNbS;
  GEOMAlgo_KindOfShape aKS;
  GEOMAlgo_KindOfName aKN;
  GEOMAlgo_KindOfBounds aKB;
  GEOMAlgo_KindOfClosed aKC;
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  aNbF=NbSubShapes(TopAbs_FACE);
  aNbS=NbSubShapes(TopAbs_SOLID);
  aKS=KindOfShape();
  aKN=KindOfName();
  aKB=KindOfBounds();
  aKC=KindOfClosed();
  //
  printf(" *COMPSOLID\n");
  printf("  number of vertices: %d\n", aNbV);
  printf("  number of edges   : %d\n", aNbE);
  printf("  number of faces   : %d\n", aNbF);
  printf("  number of solids  : %d\n", aNbS);
  DumpKindOfShape (aKS);
  DumpKindOfName (aKN);
  DumpKindOfBounds(aKB);
  DumpKindOfClosed(aKC);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpEdge ( ) const [protected]

Definition at line 686 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV;
  Standard_Real aX, aY, aZ;
  GEOMAlgo_KindOfShape aKS;
  GEOMAlgo_KindOfName aKN;
  GEOMAlgo_KindOfBounds aKB;
  GEOMAlgo_KindOfClosed aKC;
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aKS=KindOfShape();
  aKN=KindOfName();
  aKB=KindOfBounds();
  aKC=KindOfClosed();
  //
  printf(" *EDGE\n");
  printf("  number of vertices: %d\n", aNbV);
  DumpKindOfShape (aKS);
  DumpKindOfName (aKN);
  DumpKindOfBounds(aKB);
  DumpKindOfClosed(aKC);
  //
  // LINE
  if (aKN==GEOMAlgo_KN_LINE) {
    DumpLocation (myLocation);
    DumpDirection(myDirection);
  }
  else if (aKN==GEOMAlgo_KN_SEGMENT) {
    DumpLocation (myLocation);
    DumpDirection(myDirection);
    printf("  Length    : %.3lf\n", myLength);
    myPnt1.Coord(aX, aY, aZ);
    printf("  Pnt1 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);
    myPnt2.Coord(aX, aY, aZ);
    printf("  Pnt2 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);

  }
  else if (aKN==GEOMAlgo_KN_CIRCLE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
  }
  else if (aKN==GEOMAlgo_KN_ARCCIRCLE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    myPnt1.Coord(aX, aY, aZ);
    printf("  Pnt1 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);
    myPnt2.Coord(aX, aY, aZ);
    printf("  Pnt2 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);
  }
  else if (aKN==GEOMAlgo_KN_ELLIPSE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
  }
  else if (aKN==GEOMAlgo_KN_ARCELLIPSE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
    myPnt1.Coord(aX, aY, aZ);
    printf("  Pnt1 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);
    myPnt2.Coord(aX, aY, aZ);
    printf("  Pnt2 : %.3lf %.3lf %.3lf\n", aX, aY, aZ);
  }
  printf("\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpFace ( ) const [protected]

Definition at line 554 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE;
  GEOMAlgo_KindOfShape aKS;
  GEOMAlgo_KindOfName aKN;
  GEOMAlgo_KindOfBounds aKB;
  GEOMAlgo_KindOfClosed aKC;
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  aKS=KindOfShape();
  aKN=KindOfName();
  aKB=KindOfBounds();
  aKC=KindOfClosed();
  //
  printf(" *FACE\n");
  printf("  number of vertices: %d\n", aNbV);
  printf("  number of edges   : %d\n", aNbE);
  DumpKindOfShape (aKS);
  DumpKindOfName (aKN);
  DumpKindOfBounds(aKB);
  DumpKindOfClosed(aKC);
  //
  // PLANE
  if (aKN==GEOMAlgo_KN_PLANE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
  }
  else if (aKN==GEOMAlgo_KN_DISKCIRCLE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
  }
  else if (aKN==GEOMAlgo_KN_DISKELLIPSE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
  }
  else if (aKN==GEOMAlgo_KN_RECTANGLE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Length    : %.3lf\n", myLength);
    printf("  Width     : %.3lf\n", myWidth);
  }
  else if (aKN==GEOMAlgo_KN_TRIANGLE ||
           aKN==GEOMAlgo_KN_QUADRANGLE||
           aKN==GEOMAlgo_KN_POLYGON) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
  }
  //
  // SPHERE
  else if (aKN==GEOMAlgo_KN_SPHERE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf", myRadius1);
  }
  //
  // CYLINDER
  else if (aKN==GEOMAlgo_KN_CYLINDER) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Height    : %.3lf\n", myHeight);
  }
  //
  // CONE
  else if (aKN==GEOMAlgo_KN_CONE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
    printf("  Height    : %.3lf\n", myHeight);
  }
  //
  // TORUS
  else if (aKN==GEOMAlgo_KN_TORUS) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
  }


  printf("\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpShell ( ) const [protected]

Definition at line 645 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE, aNbF;
  GEOMAlgo_KindOfClosed aKC;
  //
  printf(" *SHELL\n");
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  aNbF=NbSubShapes(TopAbs_FACE);
  printf("  number of vertices: %d\n", aNbV);
  printf("  number of edges   : %d\n", aNbE);
  printf("  number of faces   : %d\n", aNbF);
  aKC=KindOfClosed();
  DumpKindOfClosed(aKC);
  printf("\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpSolid ( ) const [protected]

Definition at line 488 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE, aNbF;
  GEOMAlgo_KindOfShape aKS;
  GEOMAlgo_KindOfName aKN;
  GEOMAlgo_KindOfBounds aKB;
  GEOMAlgo_KindOfClosed aKC;
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  aNbF=NbSubShapes(TopAbs_FACE);
  aKS=KindOfShape();
  aKN=KindOfName();
  aKB=KindOfBounds();
  aKC=KindOfClosed();
  //
  printf(" *SOLID\n");
  printf("  number of vertices: %d\n", aNbV);
  printf("  number of edges   : %d\n", aNbE);
  printf("  number of faces   : %d\n", aNbF);
  DumpKindOfShape (aKS);
  DumpKindOfName (aKN);
  DumpKindOfBounds(aKB);
  DumpKindOfClosed(aKC);
  //
  if (aKN==GEOMAlgo_KN_SPHERE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
  }
  if (aKN==GEOMAlgo_KN_CYLINDER) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Height    : %.3lf\n", myHeight);
  }
  else if (aKN==GEOMAlgo_KN_CONE) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
    printf("  Height    : %.3lf\n", myHeight);
  }
  else if (aKN==GEOMAlgo_KN_TORUS) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Radius1   : %.3lf\n", myRadius1);
    printf("  Radius2   : %.3lf\n", myRadius2);
  }
  else if (aKN==GEOMAlgo_KN_POLYHEDRON) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
  }
  else if (aKN==GEOMAlgo_KN_BOX) {
    DumpLocation (myLocation);
    DumpPosition (myPosition);
    printf("  Length    : %.3lf\n", myLength);
    printf("  Width     : %.3lf\n", myWidth);
    printf("  Height    : %.3lf\n", myHeight);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpVertex ( ) const [protected]

Definition at line 759 of file GEOMAlgo_ShapeInfo.cxx.

{
  printf(" *VERTEX\n");
  DumpLocation(myLocation);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::DumpWire ( ) const [protected]

Definition at line 666 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer aNbV, aNbE;
  GEOMAlgo_KindOfClosed aKC;
  //
  printf(" *WIRE\n");
  //
  aNbV=NbSubShapes(TopAbs_VERTEX);
  aNbE=NbSubShapes(TopAbs_EDGE);
  printf("  number of vertices: %d\n", aNbV);
  printf("  number of edges   : %d\n", aNbE);

  aKC=KindOfClosed();
  DumpKindOfClosed(aKC);
  printf("\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Standard_Real GEOMAlgo_ShapeInfo::Height ( ) const

Definition at line 357 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myHeight;
}

Here is the caller graph for this function:

Definition at line 171 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myKindOfBounds;
}

Here is the caller graph for this function:

Definition at line 187 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myKindOfClosed;
}

Here is the caller graph for this function:

Definition at line 155 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myKindOfName;
}

Here is the caller graph for this function:

Definition at line 139 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myKindOfShape;
}

Here is the caller graph for this function:

Standard_Real GEOMAlgo_ShapeInfo::Length ( ) const

Definition at line 325 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myLength;
}

Here is the caller graph for this function:

const gp_Pnt & GEOMAlgo_ShapeInfo::Location ( ) const

Definition at line 203 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myLocation;
}

Here is the caller graph for this function:

Standard_Integer GEOMAlgo_ShapeInfo::NbSubShapes ( const TopAbs_ShapeEnum  aType) const

Definition at line 117 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer iN;

  iN=TypeToInteger(aType);
  if (iN>=0 && iN<myNbTypes) {
    return myNbSubShapes[iN];
  }
  return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const gp_Pnt & GEOMAlgo_ShapeInfo::Pnt1 ( ) const

Definition at line 261 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myPnt1;
}

Here is the caller graph for this function:

const gp_Pnt & GEOMAlgo_ShapeInfo::Pnt2 ( ) const

Definition at line 277 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myPnt2;
}

Here is the caller graph for this function:

const gp_Ax3 & GEOMAlgo_ShapeInfo::Position ( ) const

Definition at line 244 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myPosition;
}

Here is the caller graph for this function:

Standard_Real GEOMAlgo_ShapeInfo::Radius1 ( ) const

Definition at line 293 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myRadius1;
}

Here is the caller graph for this function:

Standard_Real GEOMAlgo_ShapeInfo::Radius2 ( ) const

Definition at line 309 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myRadius2;
}

Here is the caller graph for this function:

Definition at line 58 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer i;
  //
  myType=TopAbs_SHAPE;
  //
  myNbTypes=9;
  for (i=0; i<myNbTypes; ++i) {
    myNbSubShapes[i]=0;
  }
  //
  myKindOfShape=GEOMAlgo_KS_UNKNOWN;
  myKindOfBounds=GEOMAlgo_KB_UNKNOWN;
  myKindOfClosed=GEOMAlgo_KC_UNKNOWN;
  myKindOfName=GEOMAlgo_KN_UNKNOWN;
  //
  myLocation.SetCoord(99., 99., 99.);
  myDirection.SetCoord(1.,0.,0.);
  //
  myRadius1=-1.;
  myRadius2=-2.;
  myLength=-3.;
  myWidth=-3.;
  myHeight=-3.;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetDirection ( const gp_Dir &  aD)

Definition at line 211 of file GEOMAlgo_ShapeInfo.cxx.

{
  myDirection=aD;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetHeight ( const Standard_Real  aH)

Definition at line 349 of file GEOMAlgo_ShapeInfo.cxx.

{
  myHeight=aH;
}

Here is the caller graph for this function:

Definition at line 163 of file GEOMAlgo_ShapeInfo.cxx.

Here is the caller graph for this function:

Definition at line 179 of file GEOMAlgo_ShapeInfo.cxx.

Here is the caller graph for this function:

Definition at line 147 of file GEOMAlgo_ShapeInfo.cxx.

{
  myKindOfName=aT;
}

Here is the caller graph for this function:

Definition at line 131 of file GEOMAlgo_ShapeInfo.cxx.

{
  myKindOfShape=aT;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetLength ( const Standard_Real  aL)

Definition at line 317 of file GEOMAlgo_ShapeInfo.cxx.

{
  myLength=aL;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetLocation ( const gp_Pnt &  aP)

Definition at line 195 of file GEOMAlgo_ShapeInfo.cxx.

{
  myLocation=aP;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetNbSubShapes ( const TopAbs_ShapeEnum  aType,
const Standard_Integer  aNb 
)

Definition at line 103 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer iN;

  iN=TypeToInteger(aType);
  if (iN>=0 && iN<myNbTypes) {
    myNbSubShapes[iN]=aNb;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetPnt1 ( const gp_Pnt &  aP)

Definition at line 253 of file GEOMAlgo_ShapeInfo.cxx.

{
  myPnt1=aP;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetPnt2 ( const gp_Pnt &  aP)

Definition at line 269 of file GEOMAlgo_ShapeInfo.cxx.

{
  myPnt2=aP;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetPosition ( const gp_Ax2 &  aAx2)

Definition at line 227 of file GEOMAlgo_ShapeInfo.cxx.

{
  gp_Ax3 aAx3(aAx2);
  SetPosition(aAx3);
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetPosition ( const gp_Ax3 &  aAx3)

Definition at line 236 of file GEOMAlgo_ShapeInfo.cxx.

{
  myPosition=aAx3;
}
void GEOMAlgo_ShapeInfo::SetRadius1 ( const Standard_Real  aR)

Definition at line 285 of file GEOMAlgo_ShapeInfo.cxx.

{
  myRadius1=aR;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetRadius2 ( const Standard_Real  aR)

Definition at line 301 of file GEOMAlgo_ShapeInfo.cxx.

{
  myRadius2=aR;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetType ( const TopAbs_ShapeEnum  aType)

Definition at line 87 of file GEOMAlgo_ShapeInfo.cxx.

{
  myType=aType;
}

Here is the caller graph for this function:

void GEOMAlgo_ShapeInfo::SetWidth ( const Standard_Real  aW)

Definition at line 333 of file GEOMAlgo_ShapeInfo.cxx.

{
  myWidth=aW;
}

Here is the caller graph for this function:

TopAbs_ShapeEnum GEOMAlgo_ShapeInfo::Type ( ) const

Definition at line 95 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myType;
}

Here is the caller graph for this function:

Standard_Real GEOMAlgo_ShapeInfo::Width ( ) const

Definition at line 341 of file GEOMAlgo_ShapeInfo.cxx.

{
  return myWidth;
}

Here is the caller graph for this function:


Member Data Documentation

gp_Dir GEOMAlgo_ShapeInfo::myDirection [protected]

Definition at line 191 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Real GEOMAlgo_ShapeInfo::myHeight [protected]

Definition at line 197 of file GEOMAlgo_ShapeInfo.hxx.

Definition at line 188 of file GEOMAlgo_ShapeInfo.hxx.

Definition at line 189 of file GEOMAlgo_ShapeInfo.hxx.

Definition at line 187 of file GEOMAlgo_ShapeInfo.hxx.

Definition at line 186 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Real GEOMAlgo_ShapeInfo::myLength [protected]

Definition at line 195 of file GEOMAlgo_ShapeInfo.hxx.

gp_Pnt GEOMAlgo_ShapeInfo::myLocation [protected]

Definition at line 190 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Integer GEOMAlgo_ShapeInfo::myNbSubShapes[9] [protected]

Definition at line 185 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Integer GEOMAlgo_ShapeInfo::myNbTypes [protected]

Definition at line 200 of file GEOMAlgo_ShapeInfo.hxx.

gp_Pnt GEOMAlgo_ShapeInfo::myPnt1 [protected]

Definition at line 198 of file GEOMAlgo_ShapeInfo.hxx.

gp_Pnt GEOMAlgo_ShapeInfo::myPnt2 [protected]

Definition at line 199 of file GEOMAlgo_ShapeInfo.hxx.

gp_Ax3 GEOMAlgo_ShapeInfo::myPosition [protected]

Definition at line 192 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Real GEOMAlgo_ShapeInfo::myRadius1 [protected]

Definition at line 193 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Real GEOMAlgo_ShapeInfo::myRadius2 [protected]

Definition at line 194 of file GEOMAlgo_ShapeInfo.hxx.

TopAbs_ShapeEnum GEOMAlgo_ShapeInfo::myType [protected]

Definition at line 184 of file GEOMAlgo_ShapeInfo.hxx.

Standard_Real GEOMAlgo_ShapeInfo::myWidth [protected]

Definition at line 196 of file GEOMAlgo_ShapeInfo.hxx.


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