OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKShHealing
ShapeFix


ShapeFix_WireSegment Class Reference

This class is auxiliary class used in ComposeShell.
It is intended for representing segment of the wire
(or whole wire). The segment itself is represented by
ShapeExtend_WireData. In addition, some associated data
necessary for computations are stored:
.

#include <ShapeFix_WireSegment.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT ShapeFix_WireSegment ()
 Creates empty segment.
.
Standard_EXPORT ShapeFix_WireSegment (const Handle(ShapeExtend_WireData)&wire, const TopAbs_Orientation ori=TopAbs_EXTERNAL)
 Creates segment and initializes it with wire and orientation.
.
Standard_EXPORT ShapeFix_WireSegment (const TopoDS_Wire &wire, const TopAbs_Orientation ori=TopAbs_EXTERNAL)
 Creates segment and initializes it with wire and orientation.
.
Standard_EXPORT void Clear ()
 Clears all fields.
.
Standard_EXPORT void Load (const Handle(ShapeExtend_WireData)&wire)
 Loads wire.
.
Standard_EXPORT const Handle_ShapeExtend_WireData & WireData () const
 Returns wire.
.
Standard_EXPORT void Orientation (const TopAbs_Orientation ori)
 Sets orientation flag.
.
Standard_EXPORT TopAbs_Orientation Orientation () const
 Returns orientation flag.
.
Standard_EXPORT TopoDS_Vertex FirstVertex () const
 Returns first vertex of the first edge in the wire
(no dependance on Orientation()).
.
Standard_EXPORT TopoDS_Vertex LastVertex () const
 Returns last vertex of the last edge in the wire
(no dependance on Orientation()).
.
Standard_EXPORT Standard_Boolean IsClosed () const
 Returns True if FirstVertex() == LastVertex()
.
Standard_EXPORT Standard_Integer NbEdges () const
 Returns Number of edges in the wire
.
Standard_EXPORT TopoDS_Edge Edge (const Standard_Integer i) const
 Returns edge by given index in the wire
.
Standard_EXPORT void SetEdge (const Standard_Integer i, const TopoDS_Edge &edge)
 Replaces edge at index i by new one.
.
Standard_EXPORT void AddEdge (const Standard_Integer i, const TopoDS_Edge &edge)
 Insert a new edge with index i and implicitly defined
patch indices (indefinite patch).
If i==0, edge is inserted at end of wire.
.
Standard_EXPORT void AddEdge (const Standard_Integer i, const TopoDS_Edge &edge, const Standard_Integer iumin, const Standard_Integer iumax, const Standard_Integer ivmin, const Standard_Integer ivmax)
 Insert a new edge with index i and explicitly defined
patch indices. If i==0, edge is inserted at end of wire.
.
Standard_EXPORT void SetPatchIndex (const Standard_Integer i, const Standard_Integer iumin, const Standard_Integer iumax, const Standard_Integer ivmin, const Standard_Integer ivmax)
 Set patch indices for edge i.
.
Standard_EXPORT void DefineIUMin (const Standard_Integer i, const Standard_Integer iumin)
Standard_EXPORT void DefineIUMax (const Standard_Integer i, const Standard_Integer iumax)
Standard_EXPORT void DefineIVMin (const Standard_Integer i, const Standard_Integer ivmin)
Standard_EXPORT void DefineIVMax (const Standard_Integer i, const Standard_Integer ivmax)
 Modify minimal or maximal patch index for edge i.
The corresponding patch index for that edge is modified so
as to satisfy eq. iumin <= myIUMin(i) <= myIUMax(i) <= iumax
.
Standard_EXPORT void GetPatchIndex (const Standard_Integer i, Standard_Integer &iumin, Standard_Integer &iumax, Standard_Integer &ivmin, Standard_Integer &ivmax) const
 Returns patch indices for edge i.
.
Standard_EXPORT Standard_Boolean CheckPatchIndex (const Standard_Integer i) const
 Checks patch indices for edge i to satisfy equations
IUMin(i) <= IUMax(i) <= IUMin(i)+1
.
Standard_EXPORT void SetVertex (const TopoDS_Vertex &theVertex)
Standard_EXPORT TopoDS_Vertex GetVertex () const
Standard_EXPORT Standard_Boolean IsVertex () const

Private Attributes

Handle_ShapeExtend_WireData myWire
TopoDS_Vertex myVertex
TopAbs_Orientation myOrient
Handle_TColStd_HSequenceOfInteger myIUMin
Handle_TColStd_HSequenceOfInteger myIUMax
Handle_TColStd_HSequenceOfInteger myIVMin
Handle_TColStd_HSequenceOfInteger myIVMax


Constructor & Destructor Documentation

Standard_EXPORT ShapeFix_WireSegment::ShapeFix_WireSegment  ) 
 

Standard_EXPORT ShapeFix_WireSegment::ShapeFix_WireSegment const Handle(ShapeExtend_WireData)&  wire,
const TopAbs_Orientation  ori = TopAbs_EXTERNAL
 

Standard_EXPORT ShapeFix_WireSegment::ShapeFix_WireSegment const TopoDS_Wire &  wire,
const TopAbs_Orientation  ori = TopAbs_EXTERNAL
 


Member Function Documentation

Standard_EXPORT void ShapeFix_WireSegment::AddEdge const Standard_Integer  i,
const TopoDS_Edge &  edge,
const Standard_Integer  iumin,
const Standard_Integer  iumax,
const Standard_Integer  ivmin,
const Standard_Integer  ivmax
 

Standard_EXPORT void ShapeFix_WireSegment::AddEdge const Standard_Integer  i,
const TopoDS_Edge &  edge
 

Standard_EXPORT Standard_Boolean ShapeFix_WireSegment::CheckPatchIndex const Standard_Integer  i  )  const
 

Standard_EXPORT void ShapeFix_WireSegment::Clear  ) 
 

Standard_EXPORT void ShapeFix_WireSegment::DefineIUMax const Standard_Integer  i,
const Standard_Integer  iumax
 

Standard_EXPORT void ShapeFix_WireSegment::DefineIUMin const Standard_Integer  i,
const Standard_Integer  iumin
 

Standard_EXPORT void ShapeFix_WireSegment::DefineIVMax const Standard_Integer  i,
const Standard_Integer  ivmax
 

Standard_EXPORT void ShapeFix_WireSegment::DefineIVMin const Standard_Integer  i,
const Standard_Integer  ivmin
 

Standard_EXPORT TopoDS_Edge ShapeFix_WireSegment::Edge const Standard_Integer  i  )  const
 

Standard_EXPORT TopoDS_Vertex ShapeFix_WireSegment::FirstVertex  )  const
 

Standard_EXPORT void ShapeFix_WireSegment::GetPatchIndex const Standard_Integer  i,
Standard_Integer &  iumin,
Standard_Integer &  iumax,
Standard_Integer &  ivmin,
Standard_Integer &  ivmax
const
 

Standard_EXPORT TopoDS_Vertex ShapeFix_WireSegment::GetVertex  )  const
 

Standard_EXPORT Standard_Boolean ShapeFix_WireSegment::IsClosed  )  const
 

Standard_EXPORT Standard_Boolean ShapeFix_WireSegment::IsVertex  )  const
 

Standard_EXPORT TopoDS_Vertex ShapeFix_WireSegment::LastVertex  )  const
 

Standard_EXPORT void ShapeFix_WireSegment::Load const Handle(ShapeExtend_WireData)&  wire  ) 
 

Standard_EXPORT Standard_Integer ShapeFix_WireSegment::NbEdges  )  const
 

void ShapeFix_WireSegment::operator delete void *  anAddress  )  [inline]
 

void* ShapeFix_WireSegment::operator new size_t  size  )  [inline]
 

void* ShapeFix_WireSegment::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT TopAbs_Orientation ShapeFix_WireSegment::Orientation  )  const
 

Standard_EXPORT void ShapeFix_WireSegment::Orientation const TopAbs_Orientation  ori  ) 
 

Standard_EXPORT void ShapeFix_WireSegment::SetEdge const Standard_Integer  i,
const TopoDS_Edge &  edge
 

Standard_EXPORT void ShapeFix_WireSegment::SetPatchIndex const Standard_Integer  i,
const Standard_Integer  iumin,
const Standard_Integer  iumax,
const Standard_Integer  ivmin,
const Standard_Integer  ivmax
 

Standard_EXPORT void ShapeFix_WireSegment::SetVertex const TopoDS_Vertex &  theVertex  ) 
 

Standard_EXPORT const Handle_ShapeExtend_WireData& ShapeFix_WireSegment::WireData  )  const
 


Field Documentation

Handle_TColStd_HSequenceOfInteger ShapeFix_WireSegment::myIUMax [private]
 

Handle_TColStd_HSequenceOfInteger ShapeFix_WireSegment::myIUMin [private]
 

Handle_TColStd_HSequenceOfInteger ShapeFix_WireSegment::myIVMax [private]
 

Handle_TColStd_HSequenceOfInteger ShapeFix_WireSegment::myIVMin [private]
 

TopAbs_Orientation ShapeFix_WireSegment::myOrient [private]
 

TopoDS_Vertex ShapeFix_WireSegment::myVertex [private]
 

Handle_ShapeExtend_WireData ShapeFix_WireSegment::myWire [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:41 2008 for OpenCASCADE by  doxygen 1.4.1