TechDraw::BaseGeom Class Reference

#include <Geometry.h>

Public Member Functions

 BaseGeom ()
 
bool closed (void)
 
BaseGeomPtr copy ()
 
std::string dump ()
 
std::vector< Base::Vector3dfindEndPoints ()
 
std::string getCosmeticTag (void)
 
Base::Vector3d getEndPoint ()
 
Base::Vector3d getMidPoint ()
 
std::vector< Base::Vector3dgetQuads ()
 
Base::Vector3d getStartPoint ()
 
boost::uuids::uuid getTag () const
 
virtual std::string getTagAsString (void) const
 
std::vector< Base::Vector3dintersection (TechDraw::BaseGeomPtr geom2)
 
double minDist (Base::Vector3d p)
 
Base::Vector3d nearPoint (Base::Vector3d p)
 
Base::Vector3d nearPoint (const BaseGeomPtr p)
 find point on me nearest to p More...
 
virtual void Restore (Base::XMLReader &r)
 
virtual void Save (Base::Writer &w) const
 
void setCosmeticTag (std::string t)
 
void source (int s)
 
int source (void)
 
void sourceIndex (int si)
 
int sourceIndex (void)
 
virtual std::string toString (void) const
 
virtual ~BaseGeom ()=default
 

Static Public Member Functions

static BaseGeomPtr baseFactory (TopoDS_Edge edge)
 Convert 1 OCC edge into 1 BaseGeom (static factory method) More...
 
static bool validateEdge (TopoDS_Edge edge)
 

Public Attributes

edgeClass classOfEdge
 
bool cosmetic
 
ExtractionType extractType
 
GeomType geomType
 
bool hlrVisible
 
TopoDS_Edge occEdge
 
int ref3D
 
bool reversed
 

Protected Member Functions

void createNewTag ()
 

Protected Attributes

std::string cosmeticTag
 
int m_source
 
int m_sourceIndex
 
boost::uuids::uuid tag
 

Constructor & Destructor Documentation

◆ BaseGeom()

BaseGeom::BaseGeom ( )

References cosmeticTag, occEdge, and tag.

◆ ~BaseGeom()

virtual TechDraw::BaseGeom::~BaseGeom ( )
virtualdefault

Member Function Documentation

◆ baseFactory()

◆ closed()

◆ copy()

◆ createNewTag()

void TechDraw::BaseGeom::createNewTag ( )
protected

◆ dump()

std::string BaseGeom::dump ( void  )

◆ findEndPoints()

std::vector< Base::Vector3d > BaseGeom::findEndPoints ( )

◆ getCosmeticTag()

std::string TechDraw::BaseGeom::getCosmeticTag ( void  )

◆ getEndPoint()

◆ getMidPoint()

Base::Vector3d BaseGeom::getMidPoint ( )

References occEdge.

◆ getQuads()

std::vector< Base::Vector3d > BaseGeom::getQuads ( )

References occEdge.

◆ getStartPoint()

◆ getTag()

boost::uuids::uuid BaseGeom::getTag ( ) const

References tag.

Referenced by getTagAsString().

◆ getTagAsString()

std::string BaseGeom::getTagAsString ( void  ) const
virtual

Reimplemented in TechDraw::CosmeticEdge.

References getTag().

◆ intersection()

std::vector< Base::Vector3d > BaseGeom::intersection ( TechDraw::BaseGeomPtr  geom2)

◆ minDist()

◆ nearPoint() [1/2]

Base::Vector3d BaseGeom::nearPoint ( Base::Vector3d  p)

References occEdge.

◆ nearPoint() [2/2]

Base::Vector3d BaseGeom::nearPoint ( const BaseGeomPtr  p)

find point on me nearest to p

References occEdge.

◆ Restore()

◆ Save()

◆ setCosmeticTag()

void TechDraw::BaseGeom::setCosmeticTag ( std::string  t)

◆ source() [1/2]

void TechDraw::BaseGeom::source ( int  s)

◆ source() [2/2]

int TechDraw::BaseGeom::source ( void  )

Referenced by dump().

◆ sourceIndex() [1/2]

void TechDraw::BaseGeom::sourceIndex ( int  si)

◆ sourceIndex() [2/2]

int TechDraw::BaseGeom::sourceIndex ( void  )

Referenced by dump().

◆ toString()

std::string BaseGeom::toString ( void  ) const
virtual

◆ validateEdge()

bool BaseGeom::validateEdge ( TopoDS_Edge  edge)
static

References TechDraw::DrawUtil::isCrazy().

Referenced by baseFactory().

Member Data Documentation

◆ classOfEdge

edgeClass TechDraw::BaseGeom::classOfEdge

Referenced by copy(), dump(), Restore(), Save(), and toString().

◆ cosmetic

bool TechDraw::BaseGeom::cosmetic

Referenced by copy(), dump(), Restore(), Save(), and toString().

◆ cosmeticTag

std::string TechDraw::BaseGeom::cosmeticTag
protected

Referenced by BaseGeom(), copy(), Restore(), and Save().

◆ extractType

ExtractionType TechDraw::BaseGeom::extractType

Referenced by copy(), Restore(), Save(), and toString().

◆ geomType

◆ hlrVisible

bool TechDraw::BaseGeom::hlrVisible

Referenced by copy(), dump(), Restore(), Save(), and toString().

◆ m_source

int TechDraw::BaseGeom::m_source
protected

Referenced by copy(), Restore(), Save(), and toString().

◆ m_sourceIndex

int TechDraw::BaseGeom::m_sourceIndex
protected

Referenced by copy(), Restore(), Save(), and toString().

◆ occEdge

◆ ref3D

int TechDraw::BaseGeom::ref3D

Referenced by copy(), Restore(), Save(), and toString().

◆ reversed

◆ tag


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