}
void HYDROGUI_ImagePrs::Compute( const Handle(PrsMgr_PresentationManager3d)&,
- const Handle(Prs3d_Presentation)& aPrs, const Standard_Integer )
+ const Handle(Prs3d_Presentation)& aPrs,
+ const Standard_Integer theMode )
{
- aPrs->Clear();
+ if ( aPrs.IsNull() || myImage.IsNull() )
+ return;
- if ( aPrs.IsNull() || myImage.IsNull() )
- return;
-
- Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup( aPrs );
+ aPrs->Clear();
+ Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup( aPrs );
+ if( theMode==0 )
+ {
+ }
+ else
+ {
Graphic3d_MaterialAspect aMat( Graphic3d_NOM_PLASTIC );
aMat.SetTransparency( 0.5 );
Handle(Graphic3d_AspectFillArea3d) aFillAspect =
- new Graphic3d_AspectFillArea3d( Aspect_IS_SOLID, Quantity_NOC_WHITE, Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.0, aMat, aMat );
+ new Graphic3d_AspectFillArea3d( Aspect_IS_SOLID, Quantity_NOC_WHITE, Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.0, aMat, aMat );
Handle(Graphic3d_TextureMap) aTex = new Graphic3d_Texture2Dmanual( myImage );
aFillAspect->SetTextureMapOn();
aGroup->SetGroupPrimitivesAspect( aFillAspect );
aGroup->AddPrimitiveArray( aTriangles );
+ }
}
gp_Pnt HYDROGUI_ImagePrs::convert( const QPointF& thePoint ) const