Back to index

salome-geom  6.5.0
Functions
GEOMAlgo_ShapeInfo.cxx File Reference
#include <GEOMAlgo_ShapeInfo.hxx>

Go to the source code of this file.

Functions

static Standard_Integer TypeToInteger (const TopAbs_ShapeEnum aType)
static void DumpKindOfShape (const GEOMAlgo_KindOfShape aKS)
static void DumpKindOfClosed (const GEOMAlgo_KindOfClosed aKC)
static void DumpKindOfBounds (const GEOMAlgo_KindOfBounds aKB)
static void DumpKindOfName (const GEOMAlgo_KindOfName aKS)
static void DumpPosition (const gp_Ax3 &aAx3)
static void DumpLocation (const gp_Pnt &aP)
static void DumpDirection (const gp_Dir &aD)

Function Documentation

void DumpDirection ( const gp_Dir &  aD) [static]

Definition at line 779 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Real aX, aY, aZ;
  //
  aD.Coord(aX, aY, aZ);
  printf("  Direction: %.3lf %.3lf %.3lf \n", aX, aY, aZ);
}

Here is the caller graph for this function:

void DumpKindOfBounds ( const GEOMAlgo_KindOfBounds  aKB) [static]

Definition at line 804 of file GEOMAlgo_ShapeInfo.cxx.

{
  const char *pStr[]={
    "KB_UNKNOWN",
    "KB_TRIMMED",
    "KB_INFINITE"
  };
  int i;
  //
  i=(Standard_Integer)aKB;
  printf(" KindOfBounds: %s\n", pStr[i]);

}

Here is the caller graph for this function:

void DumpKindOfClosed ( const GEOMAlgo_KindOfClosed  aKC) [static]

Definition at line 821 of file GEOMAlgo_ShapeInfo.cxx.

{
  const char *pStr[]={
    "KC_UNKNOWN",
    "KC_CLOSED",
    "KC_NOTCLOSED"
  };
  int i;
  //
  i=(Standard_Integer)aKC;
  printf(" KindOfClosed: %s\n", pStr[i]);

}

Here is the caller graph for this function:

void DumpKindOfName ( const GEOMAlgo_KindOfName  aKS) [static]

Definition at line 862 of file GEOMAlgo_ShapeInfo.cxx.

{
  const char *pStr[]={
    "KN_UNKNOWN",
    "KN_SPHERE",
    "KN_CYLINDER",
    "KN_TORUS",
    "KN_CONE",
    "KN_ELLIPSE",
    "KN_CIRCLE",
    "KN_PLANE",
    "KN_LINE",
    "KN_BOX",
    "KN_SEGMENT",
    "KN_ARCCIRCLE",
    "KN_POLYGON",
    "KN_POLYHEDRON",
    "KN_DISKCIRCLE",
    "KN_DISKELLIPSE",
    "KN_RECTANGLE",
    "KN_TRIANGLE",
    "KN_QUADRANGLE",
    "KN_ARCELLIPSE"
    };
  int i;
  //
  i=(Standard_Integer)aKS;
  printf(" KindOfName  : %s\n", pStr[i]);
}

Here is the caller graph for this function:

void DumpKindOfShape ( const GEOMAlgo_KindOfShape  aKS) [static]

Definition at line 838 of file GEOMAlgo_ShapeInfo.cxx.

{
  const char *pStr[]={
    "KS_UNKNOWN",
    "KS_SPHERE",
    "KS_CYLINDER",
    "KS_BOX",
    "KS_TORUS",
    "KS_CONE",
    "KS_ELLIPSE",
    "KS_PLANE",
    "KS_CIRCLE",
    "KS_LINE",
    "KS_DEGENERATED"
    };
  int i;
  //
  i=(Standard_Integer)aKS;
  printf(" KindOfShape : %s\n", pStr[i]);
}

Here is the caller graph for this function:

void DumpLocation ( const gp_Pnt &  aP) [static]

Definition at line 768 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Real aX, aY, aZ;
  //
  aP.Coord(aX, aY, aZ);
  printf("  Location : %.3lf %.3lf %.3lf \n", aX, aY, aZ);
}

Here is the caller graph for this function:

void DumpPosition ( const gp_Ax3 &  aAx3) [static]

Definition at line 790 of file GEOMAlgo_ShapeInfo.cxx.

{
  const gp_Dir& aDZ=aAx3.Axis().Direction();
  const gp_Dir& aDX=aAx3.XDirection();
  const gp_Dir& aDY=aAx3.YDirection();
  printf("  Position:\n");
  printf("  Axis: %.3lf %.3lf %.3lf \n", aDZ.X(), aDZ.Y(), aDZ.Z());
  printf("  X   : %.3lf %.3lf %.3lf \n", aDX.X(), aDX.Y(), aDX.Z());
  printf("  Y   : %.3lf %.3lf %.3lf \n", aDY.X(), aDY.Y(), aDY.Z());
}

Here is the caller graph for this function:

Standard_Integer TypeToInteger ( const TopAbs_ShapeEnum  aType) [static]

Definition at line 365 of file GEOMAlgo_ShapeInfo.cxx.

{
  Standard_Integer iN;
  //
  iN=(Standard_Integer)aType;
  return iN;
}

Here is the caller graph for this function: