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);
137 bool setColor(
const std::shared_ptr<GeomAPI_Shape>& theSubShape,
138 int theR,
int theG,
int theB);
146 void getColor(
int& theR,
int& theG,
int& theB);
178 bool setWidth(
const double& theWidth);
207 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:191
GEOMAPI_EXPORT bool setDeflection(const double theDeflection)
Assigns the deflection to the shape.
Definition: GeomAPI_AISObject.cpp:417
GEOMAPI_EXPORT void getColor(int &theR, int &theG, int &theB)
Returns the color for the shape.
Definition: GeomAPI_AISObject.cpp:404
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:117
GEOMAPI_EXPORT double getDeflection() const
Returns deflection for the shape.
Definition: GeomAPI_AISObject.cpp:443
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:291
GEOMAPI_EXPORT void setColor(const int &theColor)
Assigns the color for the shape.
Definition: GeomAPI_AISObject.cpp:324
GEOMAPI_EXPORT double width()
Definition: GeomAPI_AISObject.cpp:341
GEOMAPI_EXPORT void createShape(std::shared_ptr< GeomAPI_Shape > theShape)
Creates AIS_Shape object using specified shape.
Definition: GeomAPI_AISObject.cpp:70
GEOMAPI_EXPORT bool isEmptyDistanceGeometry()
Returns validity of the AIS distance.
Definition: GeomAPI_AISObject.cpp:176
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:267
GEOMAPI_EXPORT bool setWidth(const double &theWidth)
Assigns the width of the lines of shape.
Definition: GeomAPI_AISObject.cpp:351
GEOMAPI_EXPORT bool setTransparency(const double theTransparency)
Assigns the transparency to the shape.
Definition: GeomAPI_AISObject.cpp:455
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:498
GEOMAPI_EXPORT bool setLineStyle(int theStyle)
Set line type of edges Has to be defined according to Aspect_TypeOfLine.
Definition: GeomAPI_AISObject.cpp:529
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Shape > getShape() const
Returns shape used for the presentation creation (can be NULL)
Definition: GeomAPI_AISObject.cpp:102
GEOMAPI_EXPORT bool empty() const
Checks if the object is empty.
Definition: GeomAPI_AISObject.cpp:489
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:240
GEOMAPI_EXPORT double getTransparency() const
Returns deflection for the shape.
Definition: GeomAPI_AISObject.cpp:477
GEOMAPI_EXPORT void setPointMarker(int theType, double theScale)
Sets marker type for vertex.
Definition: GeomAPI_AISObject.cpp:513
GEOMAPI_EXPORT bool setTransparensy(double theVal)
Set transparency of the presentation (theVal = 0 ...
Definition: GeomAPI_AISObject.cpp:556
GEOMAPI_EXPORT GeomAPI_AISObject()
Creation of empty AIS object.
Definition: GeomAPI_AISObject.cpp:54
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
\Plane in 3D place, defined by normal, center and x-direction.
Definition: GeomAPI_Pln.h:38
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43