00001 #ifndef OnXSvc_Helpers_h
00002 #define OnXSvc_Helpers_h
00003
00004 #include <OnX/Helpers/Inventor.h>
00005 #include <HEPVis/nodekits/SoRegion.h>
00006
00008 inline SoRegion* page_currentRegion(
00009 SoPage& aPage
00010 )
00013 {
00014 return aPage.currentRegion();
00015 }
00016
00017 #define DYNAMIC_SCENE "dynamicScene"
00018 #define STATIC_SCENE "staticScene"
00019
00021 inline void region_addToDynamicScene(
00022 SoRegion& aRegion
00023 ,SoNode* aNode
00024 )
00027 {
00028 aRegion.doIt(SbAddNode(aNode,DYNAMIC_SCENE));
00029 }
00031 inline void region_addToStaticScene(
00032 SoRegion& aRegion
00033 ,SoNode* aNode
00034 )
00037 {
00038 aRegion.doIt(SbAddNode(aNode,STATIC_SCENE));
00039 }
00040
00041 #endif