0029902: Data Exchange, XCAF - provide extended Material definition for visualization...
[occt.git] / src / XCAFPrs / XCAFPrs_AISObject.hxx
index 94139dc..34d604f 100644 (file)
@@ -57,16 +57,6 @@ protected:
                                          const Handle(Prs3d_Presentation)&           thePresentation,
                                          const Standard_Integer                      theMode) Standard_OVERRIDE;
 
-  //! Set colors to drawer
-  Standard_EXPORT void SetColors (const Handle(Prs3d_Drawer)& theDrawer,
-                                  const Quantity_Color&       theColorCurv,
-                                  const Quantity_ColorRGBA&   theColorSurf);
-
-  //! Set colors to drawer
-  void SetColors (const Handle(Prs3d_Drawer)& theDrawer,
-                  const Quantity_Color& theColorCurv,
-                  const Quantity_Color& theColorSurf) { SetColors (theDrawer, theColorCurv, Quantity_ColorRGBA (theColorSurf)); }
-
   //! Fills out a default style object which is used when styles are
   //! not explicitly defined in the document.
   //! By default, the style uses white color for curves and surfaces.
@@ -74,6 +64,14 @@ protected:
 
 protected:
 
+  //! Assign style to drawer.
+  static void setStyleToDrawer (const Handle(Prs3d_Drawer)& theDrawer,
+                                const XCAFPrs_Style& theStyle,
+                                const XCAFPrs_Style& theDefStyle,
+                                const Graphic3d_MaterialAspect& theDefMaterial);
+
+protected:
+
   TDF_Label        myLabel;        //!< label pointing onto the shape
   Standard_Boolean myToSyncStyles; //!< flag indicating that shape and sub-shapes should be updates within Compute()