cgma
OCCShapeAttributeSet.cpp File Reference
#include <Standard_Stream.hxx>
#include <BRepTools.hxx>
#include "OCCShapeAttributeSet.hpp"
#include "CubitSimpleAttrib.hpp"
#include "OCCAttribSet.hpp"
#include "OCCQueryEngine.hpp"
#include <TopoDS.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
#include <BRep_GCurve.hxx>
#include <Handle_BRep_CurveOnClosedSurface.hxx>
#include <Handle_BRep_CurveOnSurface.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <Handle_BRep_GCurve.hxx>
#include <BRep_Tool.hxx>
#include <TDF_ChildIterator.hxx>
#include <TopTools_LocationSet.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopoDS_Iterator.hxx>
#include <Poly_Polygon3D.hxx>
#include <BRep_CurveOnSurface.hxx>
#include <BRep_CurveOnClosedSurface.hxx>
#include <BRep_PointOnCurve.hxx>
#include <BRep_PointOnCurveOnSurface.hxx>
#include <BRep_PointOnSurface.hxx>
#include <TDF_Label.hxx>
#include <TopTools_DataMapOfShapeInteger.hxx>
#include "Standard_Version.hxx"
#include <TDataStd_Shape.hxx>
#include <Handle_TDataStd_Name.hxx>
#include <TDataStd_Name.hxx>
#include <Handle_TDataStd_ExtStringArray.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <TCollection_ExtendedString.hxx>
#include <Handle_TDataStd_IntegerArray.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <Handle_TDataStd_RealArray.hxx>
#include <TDataStd_RealArray.hxx>
#include <Handle_BRep_TVertex.hxx>
#include <BRep_ListIteratorOfListOfPointRepresentation.hxx>
#include <BRep_TVertex.hxx>
#include <BRep_PointRepresentation.hxx>
#include <Handle_BRep_TEdge.hxx>
#include <BRep_ListIteratorOfListOfCurveRepresentation.hxx>
#include <Handle_BRep_TFace.hxx>
#include <BRep_TFace.hxx>
#include <BRep_TEdge.hxx>
#include <BRep_CurveRepresentation.hxx>
#include <TopoDS_Vertex.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <Poly_Triangulation.hxx>
#include <Poly_PolygonOnTriangulation.hxx>

Go to the source code of this file.

Typedefs

typedef TDataStd_Shape TDataXtd_Shape
typedef Handle_TDataStd_Shape Handle_TDataXtd_Shape

Functions

static void PrintShapeEnum (const TopAbs_ShapeEnum T, Standard_OStream &S, Standard_Boolean C)
static void PrintRegularity (const GeomAbs_Shape C, Standard_OStream &OS)
static void PrintOrientation (const TopAbs_Orientation O, Standard_OStream &S, Standard_Boolean C)
static TopAbs_ShapeEnum ReadShapeEnum (Standard_IStream &IS)
static GeomAbs_Shape ReadRegularity (Standard_IStream &IS)

Variables

const char * dVersion = "CASCADE Topology V1, (c) Matra-Datavision"
const char * dVersion2 = "CASCADE Topology V2, (c) Matra-Datavision"

Typedef Documentation

typedef Handle_TDataStd_Shape Handle_TDataXtd_Shape

Definition at line 53 of file OCCShapeAttributeSet.cpp.

typedef TDataStd_Shape TDataXtd_Shape

Definition at line 52 of file OCCShapeAttributeSet.cpp.


Function Documentation

static void PrintOrientation ( const TopAbs_Orientation  O,
Standard_OStream &  S,
Standard_Boolean  C 
) [static]

Definition at line 193 of file OCCShapeAttributeSet.cpp.

{
  switch(O) {

  case TopAbs_FORWARD :
    if (C) S << "+"; else S << "FORWARD";
    break;

  case TopAbs_REVERSED :
    if (C) S << "-"; else S << "REVERSED";
    break;

  case TopAbs_INTERNAL :
    if (C) S << "i"; else S << "INTERNAL";
    break;

  case TopAbs_EXTERNAL :
    if (C) S << "e"; else S << "EXTERNAL";
    break;
  }
}
static void PrintRegularity ( const GeomAbs_Shape  C,
Standard_OStream &  OS 
) [static]

Definition at line 152 of file OCCShapeAttributeSet.cpp.

{
  switch (C) {

  case GeomAbs_C0 :
    OS << "C0";
    break;

  case GeomAbs_G1 :
    OS << "G1";
    break;

  case GeomAbs_C1 :
    OS << "C1";
    break;

  case GeomAbs_G2 :
    OS << "G2";
    break;

  case GeomAbs_C2 :
    OS << "C2";
    break;

  case GeomAbs_C3 :
    OS << "C3";
    break;

  case GeomAbs_CN :
    OS << "CN";
    break;

  }
}
static void PrintShapeEnum ( const TopAbs_ShapeEnum  T,
Standard_OStream &  S,
Standard_Boolean  C 
) [static]

Definition at line 103 of file OCCShapeAttributeSet.cpp.

{
  switch(T) {

  case TopAbs_VERTEX :
    if (C) S << "Ve"; else S << "VERTEX   ";
    break;

  case TopAbs_EDGE :
    if (C) S << "Ed"; else S << "EDGE     ";
    break;

  case TopAbs_WIRE :
    if (C) S << "Wi"; else S << "WIRE     ";
    break;

  case TopAbs_FACE :
    if (C) S << "Fa"; else S << "FACE     ";
    break;

  case TopAbs_SHELL :
    if (C) S << "Sh"; else S << "SHELL    ";
    break;

  case TopAbs_SOLID :
    if (C) S << "So"; else S << "SOLID    ";
    break;

  case TopAbs_COMPSOLID :
    if (C) S << "CS"; else S << "COMPSOLID";
    break;

  case TopAbs_COMPOUND :
    if (C) S << "Co"; else S << "COMPOUND ";
    break;

  case TopAbs_SHAPE :
    if (C) S << "Sp"; else S << "SHAPE";
    break;
  }
}
static GeomAbs_Shape ReadRegularity ( Standard_IStream &  IS) [static]

Definition at line 262 of file OCCShapeAttributeSet.cpp.

{
  std::string buffer;
  IS >> buffer;
  switch (buffer[0]) {

  case 'C' :
    switch (buffer[1]) {

    case '0' :
      return GeomAbs_C0;

    case '1' :
      return GeomAbs_C1;

    case '2' :
      return GeomAbs_C2;

    case '3' :
      return GeomAbs_C3;

    case 'N' :
      return GeomAbs_CN;
    }
    break;

  case 'G' :
    switch (buffer[1]) {

    case '1' :
      return GeomAbs_G1;

    case '2' :
      return GeomAbs_G2;

    }
    break;
  }
  return GeomAbs_C0;
}
static TopAbs_ShapeEnum ReadShapeEnum ( Standard_IStream &  IS) [static]

Definition at line 222 of file OCCShapeAttributeSet.cpp.

{
  std::string buffer;
  IS >> buffer;

  switch (buffer[0]) {

  case 'V' :
    return TopAbs_VERTEX;

  case 'E' :
    return TopAbs_EDGE;

  case 'W' :
    return TopAbs_WIRE;

  case 'F' :
    return TopAbs_FACE;

  case 'S' :
    if (buffer[1] == 'h')
      return TopAbs_SHELL;
    else
      return TopAbs_SOLID;

  case 'C' :
    if (buffer[1] == 'S')
      return TopAbs_COMPSOLID;
    else
      return TopAbs_COMPOUND;

  }
  return TopAbs_COMPOUND;
}

Variable Documentation

const char* dVersion = "CASCADE Topology V1, (c) Matra-Datavision"

Definition at line 95 of file OCCShapeAttributeSet.cpp.

const char* dVersion2 = "CASCADE Topology V2, (c) Matra-Datavision"

Definition at line 96 of file OCCShapeAttributeSet.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines