Salome HOME
FIx for issue #360 : make switching on/off checking of transactions in Session -...
[modules/shaper.git] / src / GeomAPI / GeomAPI_AISObject.h
index 97b4688e02f289d43fd5c64d22cb82396c369431..c916320c093b70c4bfd9306df2fbee7c064ea3aa 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        GeomAPI_AISObject.hxx
 // Created:     25 Jun 2014
 // Author:      Artem ZHIDKOV
@@ -15,14 +17,6 @@ class GeomAPI_Pln;
 class GeomAPI_Pnt;
 class GeomAPI_Shape;
 
-struct GEOMAPI_EXPORT Colors
-{
-  static int COLOR_BROWN;
-  static int COLOR_RED;
-  static int COLOR_GREEN;
-  static int COLOR_BLUE;
-};
-
 /** \class GeomAPI_AISObject
  *  \ingroup DataModel
  *  \brief Interface for AIS_InteractiveObject
@@ -84,6 +78,10 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface
   void createFixed(std::shared_ptr<GeomAPI_Shape> theShape,
                    std::shared_ptr<GeomAPI_Pln> thePlane);
 
+  /** \brief Redisplays the current AIS object in the context
+   */
+  void redisplay();
+
   /** \brief Assigns the color for the shape
    *  \param[in] theColor index of the color
    */
@@ -101,6 +99,21 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface
 
   /// \brief Checks if the object is empty
   bool empty() const;
+
+  /// Return shape type according to TopAbs_ShapeEnum if the AIS is AIS_Shape
+  /// Otherwise returns -1
+  int getShapeType() const;
+
+  /// Sets marker type for vertex.
+  /// The type has to be defined according to Acpect_TypeOfMarker
+  void setPointMarker(int theType, double theScale);
+
+  /// Set line type of edges
+  /// Has to be defined according to Aspect_TypeOfLine
+  void setLineStyle(int theStyle);
+
+  /// Set transparency of the presentation (theVal = 0 ... 1)
+  void setTransparensy(double theVal);
 };
 
 //! Pointer on attribute object