mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023791: Remove obsolete functionality - animation mode and degeneration presentation mode
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
-- GG : GER61351 17/11/1999 Change SetColor() with a compatible i
|
||||
-- Quantity_Color instead the restricted NameOfColor.
|
||||
-- Add SetCurrentFacingModel() methods
|
||||
-- EUG : G003 05/11/1999 Degeneration mode support
|
||||
-- Add SetDegenerateModel() methods
|
||||
-- GG : IMP140200 Add SetSelectedAspect() method
|
||||
-- GG : 25/05/00 BUC60688 Add SetSensitivity() methods
|
||||
-- VSV : 22/05/01 Add Selection by polygon
|
||||
@@ -143,7 +141,6 @@ uses
|
||||
Location from TopLoc,
|
||||
EntityOwner from SelectMgr,
|
||||
TypeOfFacingModel from Aspect,
|
||||
TypeOfDegenerateModel from Aspect,
|
||||
Array1OfPnt2d from TColgp,
|
||||
Transformation from Geom
|
||||
|
||||
@@ -702,33 +699,6 @@ is
|
||||
-- Standard_False, the presentation of the Interactive
|
||||
-- Object activates the selection mode; the object is
|
||||
-- displayed but no viewer will be updated.
|
||||
|
||||
SetDegenerateModel ( me : mutable;
|
||||
aniobj : InteractiveObject from AIS;
|
||||
aModel : TypeOfDegenerateModel from Aspect =
|
||||
Aspect_TDM_WIREFRAME;
|
||||
aRatio : Ratio from Quantity = 0.0);
|
||||
---Level: Public
|
||||
---Purpose: Sets the model of degeneration for the shaded representation
|
||||
-- of the object <aniobj>
|
||||
-- according to the degenerate ratio >= 0. & <= 1. where :
|
||||
-- <aRatio> = 0. indicate that all polygons of the object
|
||||
-- will be displayed.
|
||||
-- <aRatio> = 1. indicate that no polygons will be displayed !!
|
||||
-- When <ARatio> is > 0 & < 1. the corresponding amount
|
||||
-- of object polygons will be displayed with a random method.
|
||||
-- Warning: the degenerate structure is shown only when
|
||||
-- the animation and degenerate flags are set to TRUE
|
||||
-- in V3d_View::SetAnimationMode(..)
|
||||
---Category: Methods to manage the object degeneration
|
||||
|
||||
SetDegenerateModel (
|
||||
me : mutable;
|
||||
aModel : TypeOfDegenerateModel from Aspect;
|
||||
aSkipRatio : Ratio from Quantity = 0.0
|
||||
) is static;
|
||||
---Purpose: Defines the degenerate method to apply on the shaded
|
||||
-- representation of all objects.
|
||||
|
||||
SetLocalAttributes(me : mutable;
|
||||
aniobj : InteractiveObject from AIS;
|
||||
|
@@ -23,12 +23,6 @@
|
||||
#define BUC60577 //GG_101099 Enable to compute correctly
|
||||
// transparency with more than one object in the view.
|
||||
|
||||
//GER61351 //GG_171199 Enable to set an object RGB color instead a restricted object NameOfColor.
|
||||
|
||||
#define G003 //EUG_26/01/00 Degenerate support (G003)
|
||||
|
||||
//IMP140200 //GG Add SetSelectedAspect() method.
|
||||
|
||||
#define BUC60632 //GG 15/03/00 Add protection on SetDisplayMode()
|
||||
// method, compute only authorized presentation.
|
||||
|
||||
@@ -2495,45 +2489,6 @@ void AIS_InteractiveContext::UnsetTransparency(const Handle(AIS_InteractiveObjec
|
||||
UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDegenerateModel
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
#ifdef G003
|
||||
void AIS_InteractiveContext :: SetDegenerateModel (
|
||||
const Handle( AIS_InteractiveObject )& anObject,
|
||||
const Aspect_TypeOfDegenerateModel aModel,
|
||||
const Quantity_Ratio aRatio
|
||||
) {
|
||||
if ( !anObject.IsNull () ) {
|
||||
if ( !anObject -> HasInteractiveContext () )
|
||||
anObject -> SetContext ( this );
|
||||
anObject->SetDegenerateModel(aModel,aRatio);
|
||||
|
||||
} // end if
|
||||
} // end AIS_InteractiveContext :: SetDegenerateModel
|
||||
|
||||
void AIS_InteractiveContext :: SetDegenerateModel (
|
||||
const Aspect_TypeOfDegenerateModel aModel,
|
||||
const Quantity_Ratio aRatio
|
||||
) {
|
||||
|
||||
AIS_DataMapIteratorOfDataMapOfIOStatus it ( myObjects );
|
||||
|
||||
while ( it.More () ) {
|
||||
|
||||
Handle( AIS_InteractiveObject ) obj = it.Key ();
|
||||
|
||||
obj->SetDegenerateModel(aModel,aRatio);
|
||||
|
||||
it.Next ();
|
||||
|
||||
} // end while
|
||||
|
||||
} // end AIS_InteractiveContext :: SetDegenerateModel
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSelectedAspect
|
||||
//purpose :
|
||||
|
@@ -21,8 +21,6 @@
|
||||
-- GG : GER61351 17/11/1999 Change SetColor() with a compatible
|
||||
-- Quantity_Color instead the restricted NameOfColor.
|
||||
-- Add SetCurrentFacingModel() methods
|
||||
-- EUG : G003 05/11/1999 Degeneration mode support
|
||||
-- Add SetDegenerateModel() methods
|
||||
-- GG : IMP140100 Add HasPresentation() and Presentation() methods
|
||||
-- Add SetAspect() method
|
||||
-- SAN : OCC4895 22/03/04 High-level interface for controlling polygon offsets
|
||||
@@ -73,7 +71,6 @@ uses
|
||||
InteractiveContext from AIS,
|
||||
KindOfInteractive from AIS,
|
||||
TypeOfFacingModel from Aspect,
|
||||
TypeOfDegenerateModel from Aspect,
|
||||
Transformation from Geom,
|
||||
Presentation from Prs3d,
|
||||
BasicAspect from Prs3d,
|
||||
@@ -532,31 +529,6 @@ is
|
||||
State(me) returns Integer from Standard ;
|
||||
---C++: inline
|
||||
|
||||
SetDegenerateModel ( me : mutable;
|
||||
aModel : TypeOfDegenerateModel from Aspect =
|
||||
Aspect_TDM_WIREFRAME;
|
||||
aRatio : Ratio from Quantity = 0.0) is virtual;
|
||||
---Level: Public
|
||||
---Purpose: Sets the model of degeneration for the shaded representation
|
||||
-- according to the degenerate ratio >= 0. & <= 1. where :
|
||||
-- <aRatio> = 0. indicate that all polygons of the object
|
||||
-- will be displayed.
|
||||
-- <aRatio> = 1. indicate that no polygons will be displayed !!
|
||||
-- When <ARatio> is > 0 & < 1. the corresponding amount
|
||||
-- of object polygons will be displayed with a random method.
|
||||
-- Warning: the degenerate structure is shown only when
|
||||
-- the animation and degenerate flags are set to TRUE
|
||||
-- in V3d_View::SetAnimationMode(..)
|
||||
-- Category: Methods to manage the object degeneration
|
||||
|
||||
DegenerateModel ( me ;
|
||||
aRatio: out Ratio from Quantity )
|
||||
returns TypeOfDegenerateModel from Aspect is virtual;
|
||||
---Level: Public
|
||||
---Purpose: returns the current degeneration model and ratio
|
||||
-- for the polygons
|
||||
---Category: Inquire methods
|
||||
|
||||
SetTransformation ( me : mutable;
|
||||
aTranformation: Transformation from Geom;
|
||||
postConcatenate: Boolean from Standard = Standard_False;
|
||||
|
@@ -28,9 +28,6 @@
|
||||
// instead a restricted object NameOfColor.
|
||||
// Add SetCurrentFacingModel() method
|
||||
|
||||
#define G003 //EUG/GG 260100 DEgenerate mode support
|
||||
// Add SetDegenerateModel() methods
|
||||
|
||||
#define IMP020200 //GG Add SetTransformation() method
|
||||
|
||||
#define IMP140200 //GG Add HasPresentation() and Presentation() methods
|
||||
@@ -556,43 +553,6 @@ void AIS_InteractiveObject::SetInfiniteState(const Standard_Boolean aFlag)
|
||||
P->SetInfiniteState(myInfiniteState);}
|
||||
}
|
||||
|
||||
#ifdef G003
|
||||
//=======================================================================
|
||||
//function : SetDegenerateModel
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void AIS_InteractiveObject::SetDegenerateModel(
|
||||
const Aspect_TypeOfDegenerateModel aModel,
|
||||
const Quantity_Ratio aRatio ) {
|
||||
if( !HasColor() && !IsTransparent() && !HasMaterial() ) {
|
||||
myDrawer->SetShadingAspect(new Prs3d_ShadingAspect());
|
||||
}
|
||||
|
||||
myDrawer->ShadingAspect()->Aspect()->SetDegenerateModel(aModel,aRatio);
|
||||
|
||||
if(!GetContext().IsNull()){
|
||||
if( GetContext()->MainPrsMgr()->HasPresentation(this,1)){
|
||||
Handle(Prs3d_Presentation) P =
|
||||
GetContext()->MainPrsMgr()->CastPresentation(this,1)->Presentation();
|
||||
Handle(Graphic3d_AspectFillArea3d) a4bis =
|
||||
myDrawer->ShadingAspect()->Aspect();
|
||||
P->SetPrimitivesAspect(a4bis);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : DegenerateModel
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Aspect_TypeOfDegenerateModel AIS_InteractiveObject::DegenerateModel(
|
||||
Quantity_Ratio& aRatio) const
|
||||
{
|
||||
return myDrawer->ShadingAspect()->Aspect()->DegenerateModel(aRatio);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef IMP020200
|
||||
//=======================================================================
|
||||
//function : SetTransformation
|
||||
|
Reference in New Issue
Block a user