20 #ifndef GeomAPI_AISObject_H_
21 #define GeomAPI_AISObject_H_
23 #include <GeomAPI_Interface.h>
50 void createShape(std::shared_ptr<GeomAPI_Shape> theShape);
53 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Shape>
getShape()
const;
64 std::shared_ptr<GeomAPI_Pnt> theEndPoint,
65 std::shared_ptr<GeomAPI_Pnt> theFlyoutPoint,
66 std::shared_ptr<GeomAPI_Pln> thePlane,
double theDistance);
82 void createRadius(std::shared_ptr<GeomAPI_Circ> theCircle,
83 std::shared_ptr<GeomAPI_Pnt> theFlyoutPoint,
double theRadius);
93 std::shared_ptr<GeomAPI_Shape> theLine2,
94 std::shared_ptr<GeomAPI_Pnt> theFlyoutPoint,
95 std::shared_ptr<GeomAPI_Pln> thePlane);
104 std::shared_ptr<GeomAPI_Shape> theLine2,
105 std::shared_ptr<GeomAPI_Pln> thePlane);
112 void createFixed(std::shared_ptr<GeomAPI_Shape> theShape,
113 std::shared_ptr<GeomAPI_Pln> thePlane);
128 bool setColor(
int theR,
int theG,
int theB);
136 void getColor(
int& theR,
int& theG,
int& theB);
168 bool setWidth(
const double& theWidth);
197 typedef std::shared_ptr<GeomAPI_AISObject> AISObjectPtr;
Interface for AIS_InteractiveObject.
Definition: GeomAPI_AISObject.h:39
GEOMAPI_EXPORT void createRadius(std::shared_ptr< GeomAPI_Circ > theCircle, std::shared_ptr< GeomAPI_Pnt > theFlyoutPoint, double theRadius)
Creates PrsDim_RadiusDimension object.
Definition: GeomAPI_AISObject.cpp:190
GEOMAPI_EXPORT bool setDeflection(const double theDeflection)
Assigns the deflection to the shape.
Definition: GeomAPI_AISObject.cpp:403
GEOMAPI_EXPORT void getColor(int &theR, int &theG, int &theB)
Returns the color for the shape.
Definition: GeomAPI_AISObject.cpp:390
GEOMAPI_EXPORT void createDistance(std::shared_ptr< GeomAPI_Pnt > theStartPoint, std::shared_ptr< GeomAPI_Pnt > theEndPoint, std::shared_ptr< GeomAPI_Pnt > theFlyoutPoint, std::shared_ptr< GeomAPI_Pln > thePlane, double theDistance)
Creates PrsDim_LengthDimension object.
Definition: GeomAPI_AISObject.cpp:116
GEOMAPI_EXPORT double getDeflection() const
Returns deflection for the shape.
Definition: GeomAPI_AISObject.cpp:429
GEOMAPI_EXPORT void createFixed(std::shared_ptr< GeomAPI_Shape > theShape, std::shared_ptr< GeomAPI_Pln > thePlane)
Creates PrsDim_FixedRelation object for an object.
Definition: GeomAPI_AISObject.cpp:290
GEOMAPI_EXPORT void setColor(const int &theColor)
Assigns the color for the shape.
Definition: GeomAPI_AISObject.cpp:323
GEOMAPI_EXPORT double width()
Definition: GeomAPI_AISObject.cpp:340
GEOMAPI_EXPORT void createShape(std::shared_ptr< GeomAPI_Shape > theShape)
Creates AIS_Shape object using specified shape.
Definition: GeomAPI_AISObject.cpp:69
GEOMAPI_EXPORT bool isEmptyDistanceGeometry()
Returns validity of the AIS distance.
Definition: GeomAPI_AISObject.cpp:175
GEOMAPI_EXPORT void createPerpendicular(std::shared_ptr< GeomAPI_Shape > theLine1, std::shared_ptr< GeomAPI_Shape > theLine2, std::shared_ptr< GeomAPI_Pln > thePlane)
Creates PrsDim_PerpendicularRelation object for two lines.
Definition: GeomAPI_AISObject.cpp:266
GEOMAPI_EXPORT bool setWidth(const double &theWidth)
Assigns the width of the lines of shape.
Definition: GeomAPI_AISObject.cpp:350
GEOMAPI_EXPORT bool setTransparency(const double theTransparency)
Assigns the transparency to the shape.
Definition: GeomAPI_AISObject.cpp:441
GEOMAPI_EXPORT int getShapeType() const
Return shape type according to TopAbs_ShapeEnum if the AIS is AIS_Shape Otherwise returns -1.
Definition: GeomAPI_AISObject.cpp:484
GEOMAPI_EXPORT bool setLineStyle(int theStyle)
Set line type of edges Has to be defined according to Aspect_TypeOfLine.
Definition: GeomAPI_AISObject.cpp:515
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Shape > getShape() const
Returns shape used for the presentation creation (can be NULL)
Definition: GeomAPI_AISObject.cpp:101
GEOMAPI_EXPORT bool empty() const
Checks if the object is empty.
Definition: GeomAPI_AISObject.cpp:475
GEOMAPI_EXPORT void createParallel(std::shared_ptr< GeomAPI_Shape > theLine1, std::shared_ptr< GeomAPI_Shape > theLine2, std::shared_ptr< GeomAPI_Pnt > theFlyoutPoint, std::shared_ptr< GeomAPI_Pln > thePlane)
Creates PrsDim_ParallelRelation object for two lines.
Definition: GeomAPI_AISObject.cpp:239
GEOMAPI_EXPORT double getTransparency() const
Returns deflection for the shape.
Definition: GeomAPI_AISObject.cpp:463
GEOMAPI_EXPORT void setPointMarker(int theType, double theScale)
Sets marker type for vertex.
Definition: GeomAPI_AISObject.cpp:499
GEOMAPI_EXPORT bool setTransparensy(double theVal)
Set transparency of the presentation (theVal = 0 ...
Definition: GeomAPI_AISObject.cpp:542
GEOMAPI_EXPORT GeomAPI_AISObject()
Creation of empty AIS object.
Definition: GeomAPI_AISObject.cpp:53
Circle in 3D.
Definition: GeomAPI_Circ.h:37
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
Line in 3D.
Definition: GeomAPI_Lin.h:35
3D point defined by three coordinates
Definition: GeomAPI_Pln.h:37
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43