OpenLexocad
28.0
|
#include <Shape.h>
Public Types | |
enum | CheckShape { CheckShapeIsValidAndThrowException, CheckShapeIsValid, Unchecked } |
![]() | |
enum | MesherType { MesherType::Default_Mesher, MesherType::Acis_Mesher, MesherType::Compound_Mesher } |
enum | ModelingKernel { ModelingKernel::OCC, ModelingKernel::ACIS, ModelingKernel::CARVE, ModelingKernel::MIXED, ModelingKernel::UNKNOWN } |
Public Member Functions | |
Shape ()=default | |
Shape (pConstShape rhs) | |
virtual | ~Shape ()=default |
bool | getGeometricInformation (Topo::GeometricInformation &) const override |
virtual void | transform (const Geom::Trsf &t) |
virtual Geom::Trsf | getTransform () const |
virtual Topo::ShapeType | getShapeType () const =0 |
operator Core::Variant () const | |
Variant operator. More... | |
pConstTopologicalItem | getOwner () const override |
Returns top-level owner. Returns this if item is top-level. More... | |
bool | hasShapeAttributes () const |
Checks if this shape has ShapeAttributes. More... | |
Topo::ShapeAttributes * | getShapeAttributes () const |
Returns the ShapeAttributes of this shape. More... | |
void | addShapeAttributes (Topo::ShapeAttributes *atts) |
Adds ShapeAttributes to this shape. If shape already had some attributes they are released. More... | |
void | releaseShapesAttributes () |
Deletes the ShapeAttributes associated with this shape. More... | |
virtual Geom::Bnd_Box | getBoundingBox () const =0 |
Get BoundingBox. More... | |
virtual void | setIndexMesh (pIndexedMesh m) |
virtual pIndexedMesh | getIndexedMesh () const |
virtual bool | createIndexedMesh (pIndexedMesh m) const |
virtual void | setIndexedDrawable (pIndexedDrawable) |
virtual pIndexedDrawable | getIndexedDrawable () const |
virtual std::shared_ptr< Core::DbgInfo > | getDbgInfo () const |
virtual Topo::Shape * | clone (bool deepcopy) const =0 |
virtual bool | wasCreatedWithProblems () const |
virtual void | setWasCreatedWithProblems (bool) |
![]() | |
TopologicalItem ()=default | |
virtual | ~TopologicalItem ()=default |
virtual MesherType | getMesherType () const =0 |
virtual ModelingKernel | getModelingKernel () const =0 |
virtual Topo::ShapeTool * | getShapeTool () const =0 |
virtual ENTITY * | getEntity () const |
![]() | |
virtual Type | getTypeId (void) const |
template<typename T > | |
bool | isDerivedFrom () const |
bool | isDerivedFrom (const Type type) const |
void * | operator new (size_t size) |
void | operator delete (void *p) |
BaseClass * | operator-> () |
BaseClass * | operator-> () const |
BaseClass ()=default | |
Construction. More... | |
virtual | ~BaseClass () |
Destruction. More... | |
Public Attributes | |
std::set< Core::DocObject * > | m_appGeometryBackLinks {} |
![]() | |
long | ____deadVal = 0xBADEAFFE |
Protected Member Functions | |
Shape (ENTITY *ent) | |
virtual void | copyFrom (pConstShape rhs, bool deepCopy=true)=0 |
virtual bool | isSingleFace () const |
virtual bool | isSingleWire () const |
virtual bool | isSingleEdge () const |
virtual bool | isSingleVertex () const |
virtual bool | isSolid () const |
virtual bool | isClosedSolid () const |
virtual bool | isWire () const |
virtual bool | isCompound () const |
virtual bool | isMesh () const |
bool | _copy (const Topo::Shape *rhs, bool deepCopy=true) |
![]() | |
TopologicalItem (ENTITY *) | |
Friends | |
class | ShapeTool |
class | FaceTool |
Additional Inherited Members | |
![]() | |
static Type | getClassTypeId (void) |
static void | init (void) |
static void * | create (void) |
static void | setIfcNameAndID (const std::string &n, int id) |
![]() | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0) |
static void | initIfcTypes (const std::string &s, Base::Type classTypeId, int id) |
![]() | |
pConstTopologicalItem | source {} |
|
default |
Topo::Shape::Shape | ( | pConstShape | rhs | ) |
|
virtualdefault |
|
protected |
|
protected |
void Topo::Shape::addShapeAttributes | ( | Topo::ShapeAttributes * | atts | ) |
Adds ShapeAttributes to this shape. If shape already had some attributes they are released.
|
pure virtual |
|
protectedpure virtual |
Implemented in Topo::MeshShape.
|
virtual |
|
pure virtual |
Get BoundingBox.
|
virtual |
|
inlineoverridevirtual |
Reimplemented from Topo::TopologicalItem.
|
virtual |
|
virtual |
|
overridevirtual |
Returns top-level owner. Returns this if item is top-level.
Implements Topo::TopologicalItem.
Topo::ShapeAttributes* Topo::Shape::getShapeAttributes | ( | ) | const |
Returns the ShapeAttributes of this shape.
|
pure virtual |
|
virtual |
bool Topo::Shape::hasShapeAttributes | ( | ) | const |
Checks if this shape has ShapeAttributes.
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Topo::Shape::operator Core::Variant | ( | ) | const |
Variant operator.
void Topo::Shape::releaseShapesAttributes | ( | ) |
Deletes the ShapeAttributes associated with this shape.
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
friend |
|
friend |
|
mutable |