#include <AIS_TexturedShape.hxx>
#include <TCollection_AsciiString.hxx>
+#include <StdSelect_DisplayMode.hxx>
#include <Graphic3d_MaterialAspect.hxx>
GEOM::GEOM_IBlocksOperations_var aBlocksOperations = myGeomGUI->GetGeomGen()->GetIBlocksOperations( getStudyId() );
GEOM::GEOM_Object_var aFace = aBlocksOperations->MakeQuad4Vertices(P1,P2,P3,P4);
getDisplayer()->SetTexture(theImgFileName.toStdString());
-// getDisplayer()->SetDisplayMode(3);
- vp->getView()->SetSurfaceDetail(V3d_TEX_ALL);
+ getDisplayer()->SetDisplayMode((Standard_Integer) StdSelect_DM_HLR);
// OCCViewer_Viewer* anOCCViewer =((OCCViewer_ViewWindow*)theViewWindow)->getViewManager())->getOCCViewer();
// Handle(AIS_InteractiveContext) aContext = anOCCViewer->getAISContext();
#include <Prs3d_PointAspect.hxx>
#include <StdSelect_TypeOfEdge.hxx>
#include <StdSelect_TypeOfFace.hxx>
+#include <StdSelect_DisplayMode.hxx>
#include <TopoDS_Face.hxx>
#include <BRep_Tool.hxx>
#include <Geom_Plane.hxx>
}
if ( HasTexture() )
{
- MESSAGE("GEOM_Displayer::Update HasTexture() == true")
+ AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
AISShape->SetTextureMapOn();
AISShape->DisableTextureModulate();
- AISShape->SetMaterial(Graphic3d_NOM_SATIN);
- AISShape->SetDisplayMode( 3 );
- AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
-// Attributes()->ShadingAspect()
- MESSAGE("AISShape->TextureFile() = "<<AISShape->TextureFile())
+// AISShape->SetDisplayMode( (Standard_Integer) StdSelect_DM_HLR );
}
else
{
}
}
// AISShape->SetName(???); ??? necessary to set name ???
+// AISShape->SetDisplayMode(3);
occPrs->AddObject( AISShape );
// In accordance with ToActivate() value object will be activated/deactivated
AIS_Shape::Compute(aPresentationManager, aPrs, aMode);
break;
}
+ case StdSelect_DM_HLR:
+ {
+ AIS_TexturedShape::Compute(aPresentationManager, aPrs, 3);
+ break;
+ }
}
if (isShowVectors())