]> OCCT Git - occt-copy.git/commitdiff
0030791: Visualization - possibility to display materials by different hatching style...
authornds <nds@opencascade.com>
Sat, 5 Oct 2019 14:02:39 +0000 (17:02 +0300)
committernds <nds@opencascade.com>
Sat, 5 Oct 2019 14:02:39 +0000 (17:02 +0300)
#compilation corrections

src/Graphic3d/Graphic3d_ClipPlane.cxx
src/Graphic3d/Graphic3d_ClipPlane.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx

index 3babbf2d178a94b4fd1580acbdfabd50a25b23f0..c9922ba82601d605a44b996cebf18120e79fb585 100755 (executable)
@@ -133,8 +133,8 @@ Handle(Graphic3d_ClipPlane) Graphic3d_ClipPlane::Clone() const
 // =======================================================================
 void Graphic3d_ClipPlane::SetCappingColor (const Quantity_Color& theColor)
 {
-  myAspect->SetInteriorColor (theColor);
-  myAspect->ChangeFrontMaterial().SetColor (theColor);
+  mySectionStyle->SetInteriorColor (theColor);
+  mySectionStyle->ChangeFrontMaterial().SetColor (theColor);
   ++myAspectMod;
 }
 
@@ -144,7 +144,7 @@ void Graphic3d_ClipPlane::SetCappingColor (const Quantity_Color& theColor)
 void Graphic3d_ClipPlane::SetCappingSectionStyle (const Handle(Graphic3d_AspectFillCapping)& theStyle)
 {
   mySectionStyle = theStyle;
-  if (myAspect->FrontMaterial().MaterialType() != Graphic3d_MATERIAL_ASPECT)
+  if (mySectionStyle->FrontMaterial().MaterialType() != Graphic3d_MATERIAL_ASPECT)
   {
   }
 }
@@ -281,9 +281,9 @@ void Graphic3d_ClipPlane::SetChainNextPlane (const Handle(Graphic3d_ClipPlane)&
 // =======================================================================
 void Graphic3d_ClipPlane::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
 {
-  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myAspect.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySectionStyle.get());
 
-  OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myId);
+  //OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myId);
 
   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPlane);
 
index 781125d02421164b322cdc65fbeb2aef4d9d1c12..f9c04837b8d2b07a26306e73cafd700eae8ebb18 100755 (executable)
@@ -170,7 +170,7 @@ public:
 public: // @name user-defined graphical attributes
 
   //! Return color for rendering capping surface.
-  Quantity_Color CappingColor() const { return myAspect->FrontMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT ? myAspect->FrontMaterial().Color() : myAspect->InteriorColor(); }
+  Quantity_Color CappingColor() const { return mySectionStyle->FrontMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT ? mySectionStyle->FrontMaterial().Color() : mySectionStyle->InteriorColor(); }
 
   //! Set color for rendering capping surface.
   Standard_EXPORT void SetCappingColor (const Quantity_Color& theColor);
index d2a7b1de5ad66592d8fc2fe3bf593178dfceafeb..3ced0de0644b91f58abaf0893e05f2951233f37a 100644 (file)
@@ -9896,7 +9896,7 @@ static int VClipPlane (Draw_Interpretor& theDi, Standard_Integer theArgsNb, cons
         std::cout << "Syntax error: unknown material '" << aChangeArgs[1] << "'.\n";
         return 1;
       }
-      aClipPlane->SetCappingMaterial (aMatName);
+      //aClipPlane->SetCappingMaterial (aMatName);
     }
     else if (aChangeArg == "-overrideaspect"
           || aChangeArg == "overrideaspect")