OCC Main Page | Draw | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Draw
TKViewerTest
ViewerTest


ViewerTest Class Reference

#include <ViewerTest.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)

Static Public Member Functions

static Standard_EXPORT void Factory (Draw_Interpretor &theDI)
 Loads all Draw commands of V2d & V3d. Used for plugin.
.
static Standard_EXPORT void ViewerInit ()
 implemented in ViewerTest_ViewerCommands.cxx

static Standard_EXPORT TopoDS_Shape PickShape (const TopAbs_ShapeEnum aType, const Standard_Integer MaxPick=5)
 waits until a shape of type <atype> is picked in the AIS 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_EXPORT 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 Standard_EXPORT Handle_AIS_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_EXPORT 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 Standard_EXPORT void Commands (Draw_Interpretor &theCommands)
static Standard_EXPORT void AviCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void ViewerCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void MyCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void RelationCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void ObjectCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void FilletCommands (Draw_Interpretor &theCommands)
static Standard_EXPORT void GetMousePosition (Standard_Integer &xpix, Standard_Integer &ypix)
static Standard_EXPORT Handle_V3d_Viewer GetViewerFromContext ()
static Standard_EXPORT Handle_V3d_Viewer GetCollectorFromContext ()
static Standard_EXPORT Handle_AIS_InteractiveContext GetAISContext ()
static Standard_EXPORT NIS_InteractiveContext & GetNISContext ()
static Standard_EXPORT void SetAISContext (const Handle(AIS_InteractiveContext)&aContext)
static Standard_EXPORT void SetNISContext (const NIS_InteractiveContext &aContext)
static Standard_EXPORT Handle_V3d_View CurrentView ()
static Standard_EXPORT void CurrentView (const Handle(V3d_View)&aViou)
static Standard_EXPORT void Clear ()
static Standard_EXPORT void SetEventManager (const Handle(ViewerTest_EventManager)&aMgr)
 puts <amgr> as current eventmanager (the
move,select,...will be applied to <amgr>

static Standard_EXPORT void UnsetEventManager ()
 removes the last EventManager from the list.

static Standard_EXPORT void ResetEventManager ()
 clear the list of EventManagers and
sets the default EventManager as current

static Standard_EXPORT Handle_ViewerTest_EventManager CurrentEventManager ()
static Standard_EXPORT void RemoveSelected ()
static Standard_EXPORT void StandardModeActivation (const Standard_Integer Mode)

Static Private Member Functions

static Standard_EXPORT const
Handle_MMgt_TShared & 
WClass ()
 Returns a window class that implements standard behavior of
all windows of the ViewerTest. This includes usual Open CASCADE
view conventions for mouse buttons (e.g. Ctrl+MB1 for zoom,
Ctrl+MB2 for pan, etc) and keyboard shortcuts.
This method is relevant for MS Windows only and respectively
returns WNT_WClass handle.
.


Member Function Documentation

static Standard_EXPORT void ViewerTest::AviCommands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT void ViewerTest::Clear  )  [static]
 

static Standard_EXPORT void ViewerTest::Commands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT Handle_ViewerTest_EventManager ViewerTest::CurrentEventManager  )  [static]
 

static Standard_EXPORT void ViewerTest::CurrentView const Handle(V3d_View)&  aViou  )  [static]
 

static Standard_EXPORT Handle_V3d_View ViewerTest::CurrentView  )  [static]
 

static Standard_EXPORT void ViewerTest::Factory Draw_Interpretor theDI  )  [static]
 

static Standard_EXPORT void ViewerTest::FilletCommands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT Handle_AIS_InteractiveContext ViewerTest::GetAISContext  )  [static]
 

static Standard_EXPORT Handle_V3d_Viewer ViewerTest::GetCollectorFromContext  )  [static]
 

static Standard_EXPORT void ViewerTest::GetMousePosition Standard_Integer &  xpix,
Standard_Integer &  ypix
[static]
 

static Standard_EXPORT NIS_InteractiveContext& ViewerTest::GetNISContext  )  [static]
 

static Standard_EXPORT Handle_V3d_Viewer ViewerTest::GetViewerFromContext  )  [static]
 

static Standard_EXPORT void ViewerTest::MyCommands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT void ViewerTest::ObjectCommands Draw_Interpretor theCommands  )  [static]
 

void ViewerTest::operator delete void *  anAddress  )  [inline]
 

void* ViewerTest::operator new size_t  size  )  [inline]
 

void* ViewerTest::operator new size_t  ,
void *  anAddress
[inline]
 

static Standard_EXPORT Handle_AIS_InteractiveObject ViewerTest::PickObject const AIS_KindOfInteractive  Type = AIS_KOI_None,
const Standard_Integer  Signature = -1,
const Standard_Integer  MaxPick = 5
[static]
 

static Standard_EXPORT Standard_Boolean ViewerTest::PickObjects Handle(TColStd_HArray1OfTransient)&  thepicked,
const AIS_KindOfInteractive  Type = AIS_KOI_None,
const Standard_Integer  Signature = -1,
const Standard_Integer  MaxPick = 5
[static]
 

static Standard_EXPORT TopoDS_Shape ViewerTest::PickShape const TopAbs_ShapeEnum  aType,
const Standard_Integer  MaxPick = 5
[static]
 

static Standard_EXPORT Standard_Boolean ViewerTest::PickShapes const TopAbs_ShapeEnum  aType,
Handle(TopTools_HArray1OfShape)&  thepicked,
const Standard_Integer  MaxPick = 5
[static]
 

static Standard_EXPORT void ViewerTest::RelationCommands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT void ViewerTest::RemoveSelected  )  [static]
 

static Standard_EXPORT void ViewerTest::ResetEventManager  )  [static]
 

static Standard_EXPORT void ViewerTest::SetAISContext const Handle(AIS_InteractiveContext)&  aContext  )  [static]
 

static Standard_EXPORT void ViewerTest::SetEventManager const Handle(ViewerTest_EventManager)&  aMgr  )  [static]
 

static Standard_EXPORT void ViewerTest::SetNISContext const NIS_InteractiveContext &  aContext  )  [static]
 

static Standard_EXPORT void ViewerTest::StandardModeActivation const Standard_Integer  Mode  )  [static]
 

static Standard_EXPORT void ViewerTest::UnsetEventManager  )  [static]
 

static Standard_EXPORT void ViewerTest::ViewerCommands Draw_Interpretor theCommands  )  [static]
 

static Standard_EXPORT void ViewerTest::ViewerInit  )  [static]
 

static Standard_EXPORT const Handle_MMgt_TShared& ViewerTest::WClass  )  [static, private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:51:19 2008 for OpenCASCADE by  doxygen 1.4.1