Open CASCADE Technology
6.5.4
|
#include <Viewer2dTest.hxx>
Static Public Member Functions | |
static DEFINE_STANDARD_ALLOC void | ViewerInit (const Standard_Integer thePxLeft=0, const Standard_Integer thePxTop=0, const Standard_Integer thePxWidth=0, const Standard_Integer thePxHeight=0) |
implemented in Viewer2dTest_ViewerCommands.cxx | |
static TopoDS_Shape | PickShape (const TopAbs_ShapeEnum aType, const Standard_Integer MaxPick=5) |
waits until a shape of type <aType> is picked in the AIS2D Viewer and returns it. if <aType> == TopAbs_Shape, any shape can be picked... MaxPick is the Max number before exiting, if no pick is successfull | |
static Standard_Boolean | PickShapes (const TopAbs_ShapeEnum aType, Handle< TopTools_HArray1OfShape > &thepicked, const Standard_Integer MaxPick=5) |
wait until the array is filled with picked shapes. returns True if the array is filled. exit if number of unsuccesfull picks = <MaxPick> | |
static Handle_AIS2D_InteractiveObject | PickObject (const AIS_KindOfInteractive Type=AIS_KOI_None, const Standard_Integer Signature=-1, const Standard_Integer MaxPick=5) |
waits until an interactive object of a given Type and signature is picked (defaut values authorize selection of any Interactive Object) exit if number of unsuccesfull picks = <MaxPick> | |
static Standard_Boolean | PickObjects (Handle< TColStd_HArray1OfTransient > &thepicked, const AIS_KindOfInteractive Type=AIS_KOI_None, const Standard_Integer Signature=-1, const Standard_Integer MaxPick=5) |
selection of several interactive objects. Number is given by the size of <thepicked> exit if number of unsuccesfull picks = <MaxPick> | |
static void | GetMousePosition (Standard_Integer &xpix, Standard_Integer &ypix) |
static Handle_V2d_Viewer | GetViewerFromContext () |
static Handle_V2d_Viewer | GetCollectorFromContext () |
static Handle_AIS2D_InteractiveContext | GetAIS2DContext () |
static void | SetAIS2DContext (const Handle< AIS2D_InteractiveContext > &aContext) |
static Handle_V2d_View | CurrentView () |
static void | CurrentView (const Handle< V2d_View > &aViou) |
static void | Clear () |
static void | SetEventManager (const Handle< Viewer2dTest_EventManager > &aMgr) |
puts <aMgr> as current eventmanager (the move,select,...will be applied to <aMgr> | |
static void | UnsetEventManager () |
removes the last EventManager from the list. | |
static void | ResetEventManager () |
clear the list of EventManagers and sets the default EventManager as current | |
static Handle_Viewer2dTest_EventManager | CurrentEventManager () |
static void | RemoveSelected () |
static void | StandardModeActivation (const Standard_Integer Mode) |
static void | Commands (Draw_Interpretor &theCommands) |
static void | MyCommands (Draw_Interpretor &theCommands) |
static void | GeneralCommands (Draw_Interpretor &theCommands) |
static void | ViewerCommands (Draw_Interpretor &theCommands) |
static void | DisplayCommands (Draw_Interpretor &theCommands) |
static void | ObjectCommands (Draw_Interpretor &theCommands) |
static void Viewer2dTest::Clear | ( | ) | [static] |
static void Viewer2dTest::Commands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static Handle_Viewer2dTest_EventManager Viewer2dTest::CurrentEventManager | ( | ) | [static] |
static Handle_V2d_View Viewer2dTest::CurrentView | ( | ) | [static] |
static void Viewer2dTest::CurrentView | ( | const Handle< V2d_View > & | aViou | ) | [static] |
static void Viewer2dTest::DisplayCommands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static void Viewer2dTest::GeneralCommands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static Handle_AIS2D_InteractiveContext Viewer2dTest::GetAIS2DContext | ( | ) | [static] |
static Handle_V2d_Viewer Viewer2dTest::GetCollectorFromContext | ( | ) | [static] |
static void Viewer2dTest::GetMousePosition | ( | Standard_Integer & | xpix, |
Standard_Integer & | ypix | ||
) | [static] |
static Handle_V2d_Viewer Viewer2dTest::GetViewerFromContext | ( | ) | [static] |
static void Viewer2dTest::MyCommands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static void Viewer2dTest::ObjectCommands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static Handle_AIS2D_InteractiveObject Viewer2dTest::PickObject | ( | const AIS_KindOfInteractive | Type = AIS_KOI_None , |
const Standard_Integer | Signature = -1 , |
||
const Standard_Integer | MaxPick = 5 |
||
) | [static] |
static Standard_Boolean Viewer2dTest::PickObjects | ( | Handle< TColStd_HArray1OfTransient > & | thepicked, |
const AIS_KindOfInteractive | Type = AIS_KOI_None , |
||
const Standard_Integer | Signature = -1 , |
||
const Standard_Integer | MaxPick = 5 |
||
) | [static] |
static TopoDS_Shape Viewer2dTest::PickShape | ( | const TopAbs_ShapeEnum | aType, |
const Standard_Integer | MaxPick = 5 |
||
) | [static] |
static Standard_Boolean Viewer2dTest::PickShapes | ( | const TopAbs_ShapeEnum | aType, |
Handle< TopTools_HArray1OfShape > & | thepicked, | ||
const Standard_Integer | MaxPick = 5 |
||
) | [static] |
static void Viewer2dTest::RemoveSelected | ( | ) | [static] |
static void Viewer2dTest::ResetEventManager | ( | ) | [static] |
static void Viewer2dTest::SetAIS2DContext | ( | const Handle< AIS2D_InteractiveContext > & | aContext | ) | [static] |
static void Viewer2dTest::SetEventManager | ( | const Handle< Viewer2dTest_EventManager > & | aMgr | ) | [static] |
static void Viewer2dTest::StandardModeActivation | ( | const Standard_Integer | Mode | ) | [static] |
static void Viewer2dTest::UnsetEventManager | ( | ) | [static] |
static void Viewer2dTest::ViewerCommands | ( | Draw_Interpretor & | theCommands | ) | [static] |
static DEFINE_STANDARD_ALLOC void Viewer2dTest::ViewerInit | ( | const Standard_Integer | thePxLeft = 0 , |
const Standard_Integer | thePxTop = 0 , |
||
const Standard_Integer | thePxWidth = 0 , |
||
const Standard_Integer | thePxHeight = 0 |
||
) | [static] |