#include "SUIT_Operation.h"
#include <Standard.hxx>
+#include <TDocStd_Document.hxx>
class CAF_Study;
-class Handle(TDocStd_Document);
class CAF_EXPORT CAF_Operation : public SUIT_Operation
{
#include <TDF_Delta.hxx>
#include <TDF_ListIteratorOfDeltaList.hxx>
-#include <TDocStd_Application.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx>
#include "SUIT_Study.h"
#include <TDocStd_Document.hxx>
+#include <TDocStd_Application.hxx>
class CAF_Application;
-class Handle(TDocStd_Application);
#if defined WIN32
#pragma warning ( disable: 4251 )
#include <Standard_Type.hxx>
#include <string.h>
-IMPLEMENT_STANDARD_HANDLE( CASCatch_Failure, Standard_Transient )
-IMPLEMENT_STANDARD_RTTIEXT( CASCatch_Failure, Standard_Transient )
-
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( CASCatch_Failure, Standard_Transient )
#ifndef NO_CXX_EXCEPTION
static Handle(CASCatch_Failure) RaisedError;
#ifndef CASCATCH_FAILURE_HXX
#define CASCATCH_FAILURE_HXX
+#include <Basics_OCCTVersion.hxx>
+
#include <Standard_Transient.hxx>
#include <Standard_DefineHandle.hxx>
DEFINE_STANDARD_HANDLE( CASCatch_Failure, Standard_Transient )
Standard_EXPORT CASCatch_Failure(const Standard_CString aString);
Standard_EXPORT void Reraise(const Standard_CString aMessage) ;
Standard_EXPORT Standard_CString GetError() const;
-Standard_EXPORT static Handle_CASCatch_Failure Caught() ;
+Standard_EXPORT static Handle(CASCatch_Failure) Caught() ;
Standard_EXPORT static void Raise(const Standard_CString aMessage = "") ;
Standard_EXPORT virtual void Throw() const;public:
public:
-DEFINE_STANDARD_RTTI( CASCatch_Failure )
+ OCCT_DEFINE_STANDARD_RTTIEXT(CASCatch_Failure,Standard_Transient)
private:
/*!\var myMessage
#ifndef DDS_H
#define DDS_H
+#include <Basics_OCCTVersion.hxx>
+
#include <TCollection_AsciiString.hxx>
#include <NCollection_DefineDataMap.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx>
-IMPLEMENT_STANDARD_HANDLE(DDS_DicGroup, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(DDS_DicGroup, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(DDS_DicGroup, MMgt_TShared)
/*!
\class DDS_DicGroup
\param theID item identifier
\return dictionary item
*/
-Handle_DDS_DicItem DDS_DicGroup::GetDicItem( const TCollection_AsciiString& theID ) const
+Handle(DDS_DicItem) DDS_DicGroup::GetDicItem( const TCollection_AsciiString& theID ) const
{
Handle(DDS_DicItem) aDicItem;
// get dictionary item by id
friend class DDS_Dictionary;
public:
- DEFINE_STANDARD_RTTI(DDS_DicGroup)
+ OCCT_DEFINE_STANDARD_RTTIEXT(DDS_DicGroup,MMgt_TShared)
};
typedef NCollection_IndexedDataMap<TCollection_AsciiString, Handle(DDS_DicGroup)> DDS_IndexedDataMapOfDicGroups;
#include "DDS_DicItem.h"
#include "DDS_Dictionary.h"
-#include <TColStd_SequenceOfInteger.hxx>
-#include <TColStd_SequenceOfExtendedString.hxx>
-
#include <LDOM_Text.hxx>
#include <LDOMString.hxx>
#include <LDOM_Element.hxx>
#include <UnitsAPI.hxx>
#include <Units_Dimensions.hxx>
-#include <TColStd_MapOfReal.hxx>
-#include <TColStd_SequenceOfAsciiString.hxx>
-
-IMPLEMENT_STANDARD_HANDLE(DDS_DicItem, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(DDS_DicItem, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(DDS_DicItem, MMgt_TShared)
/*!
\class DDS_DicItem
#include <NCollection_DataMap.hxx>
#include <NCollection_DefineIndexedDataMap.hxx>
+#include <TColStd_MapOfReal.hxx>
+#include <TColStd_SequenceOfInteger.hxx>
+#include <TColStd_SequenceOfAsciiString.hxx>
+#include <TColStd_SequenceOfExtendedString.hxx>
+
class LDOM_Element;
class DDS_Dictionary;
-class TColStd_MapOfReal;
-class TColStd_SequenceOfInteger;
-class TColStd_SequenceOfAsciiString;
-class TColStd_SequenceOfExtendedString;
// Class, containing all information about one parameter:
// unique : id
friend class DDS_DicGroup;
public:
- // Declaration of CASCADE RTTI
- DEFINE_STANDARD_RTTI(DDS_DicItem)
+ OCCT_DEFINE_STANDARD_RTTIEXT(DDS_DicItem,MMgt_TShared)
};
DEFINE_STANDARD_HANDLE(DDS_DicItem, MMgt_TShared)
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx>
-IMPLEMENT_STANDARD_HANDLE(DDS_Dictionary, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(DDS_Dictionary, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(DDS_Dictionary, MMgt_TShared)
Handle(DDS_Dictionary) DDS_Dictionary::myDictionary = Handle(DDS_Dictionary)();
\brief Get the only instance of the data dictionary.
\return the only instance of the data dictionary
*/
-Handle_DDS_Dictionary DDS_Dictionary::Get()
+Handle(DDS_Dictionary) DDS_Dictionary::Get()
{
if ( myDictionary.IsNull() )
myDictionary = new DDS_Dictionary();
\param theComponent component name
\return handle to the data dictionary item
*/
-Handle_DDS_DicItem DDS_Dictionary::GetDicItem( const TCollection_AsciiString& theID,
+Handle(DDS_DicItem) DDS_Dictionary::GetDicItem( const TCollection_AsciiString& theID,
const TCollection_AsciiString& theComponent ) const
{
Handle(DDS_DicItem) aDicItem;
\param theID data dictionary item ID
\return handle to the data dictionary item
*/
-Handle_DDS_DicItem DDS_Dictionary::GetDicItem( const TCollection_AsciiString& theID ) const
+Handle(DDS_DicItem) DDS_Dictionary::GetDicItem( const TCollection_AsciiString& theID ) const
{
Handle(DDS_DicItem) aDicItem;
for ( Standard_Integer i = 1; i <= myGroupMap.Extent() && aDicItem.IsNull(); i++ )
static Handle(DDS_Dictionary) myDictionary;
public:
- DEFINE_STANDARD_RTTI(DDS_Dictionary)
+ OCCT_DEFINE_STANDARD_RTTIEXT(DDS_Dictionary,MMgt_TShared)
};
#endif
#include "DDS_KeyWords.h"
-IMPLEMENT_STANDARD_HANDLE(DDS_KeyWords, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(DDS_KeyWords, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(DDS_KeyWords, MMgt_TShared)
/*!
\class DDS_KeyWords
\brief Get the only instance of the class DDS_KeyWords.
\return the only instance of the class
*/
-Handle_DDS_KeyWords DDS_KeyWords::Get()
+Handle(DDS_KeyWords) DDS_KeyWords::Get()
{
static Handle(DDS_KeyWords) keyWords;
KeyWordMap myKeyWord;
public:
- DEFINE_STANDARD_RTTI(DDS_KeyWords)
+ OCCT_DEFINE_STANDARD_RTTIEXT(DDS_KeyWords,MMgt_TShared)
};
#endif
#ifndef DISABLE_OCCVIEWER
#include <OCCViewer_ViewModel.h>
-class Handle_AIS_InteractiveObject;
+#include <AIS_InteractiveObject.hxx>
#endif
/*!
#include <SALOME_ListIO.hxx>
// Open CASCADE Include
- #include <TColStd_MapOfInteger.hxx>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
- #include <TColStd_IndexedMapOfInteger.hxx>
#include <TCollection_AsciiString.hxx>
#endif
#ifndef DISABLE_SALOMEOBJECT
-QList<Handle_SALOME_InteractiveObject> LightApp_SelectionMgr::selectionCache( const QString& type ) const
+QList<Handle(SALOME_InteractiveObject)> LightApp_SelectionMgr::selectionCache( const QString& type ) const
{
- QList<Handle_SALOME_InteractiveObject> res;
+ QList<Handle(SALOME_InteractiveObject)> res;
QStringList types;
if ( !type.isEmpty() )
#include <QMap>
#include <NCollection_DataMap.hxx>
+ #include <TColStd_IndexedMapOfInteger.hxx>
+ #include <TColStd_MapOfInteger.hxx>
+
class SALOME_ListIO;
- class TColStd_IndexedMapOfInteger;
- class TColStd_MapOfInteger;
class TCollection_AsciiString;
#else
#include <QStringList>
#include "SALOME_AISObject.hxx"
-IMPLEMENT_STANDARD_HANDLE (SALOME_AISObject, AIS_InteractiveObject)
-IMPLEMENT_STANDARD_RTTIEXT(SALOME_AISObject, AIS_InteractiveObject)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(SALOME_AISObject, AIS_InteractiveObject)
SALOME_AISObject::SALOME_AISObject()
{
Standard_EXPORT SALOME_AISObject();
Standard_EXPORT ~SALOME_AISObject();
- Standard_EXPORT virtual Handle_SALOME_InteractiveObject getIO() = 0;
+ Standard_EXPORT virtual Handle(SALOME_InteractiveObject) getIO() = 0;
Standard_EXPORT virtual Standard_Boolean hasIO() = 0;
Standard_EXPORT virtual Standard_CString getName() = 0;
Standard_EXPORT virtual void setName(const Standard_CString aName) = 0;
public:
- DEFINE_STANDARD_RTTI(SALOME_AISObject);
+ OCCT_DEFINE_STANDARD_RTTIEXT(SALOME_AISObject,AIS_InteractiveObject)
};
DEFINE_STANDARD_HANDLE(SALOME_AISObject, AIS_InteractiveObject)
#include "SALOME_AISShape.hxx"
-IMPLEMENT_STANDARD_HANDLE (SALOME_AISShape, ViewerData_AISShape)
-IMPLEMENT_STANDARD_RTTIEXT(SALOME_AISShape, ViewerData_AISShape)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(SALOME_AISShape, ViewerData_AISShape)
/*!
Constructor
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
+#include <TColStd_IndexedMapOfInteger.hxx>
+
class TopoDS_Shape;
-class TColStd_IndexedMapOfInteger;
class SALOME_AISShape : public ViewerData_AISShape
{
Standard_EXPORT virtual Standard_CString getName() = 0;
Standard_EXPORT virtual void setName(const Standard_CString aName) = 0;
- Standard_EXPORT virtual Handle_SALOME_InteractiveObject getIO() = 0;
+ Standard_EXPORT virtual Handle(SALOME_InteractiveObject) getIO() = 0;
Standard_EXPORT virtual Standard_Boolean hasIO() = 0;
Standard_EXPORT virtual void setTopLevel(Standard_Boolean) = 0;
Standard_EXPORT virtual void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight ) = 0;
public:
- DEFINE_STANDARD_RTTI(SALOME_AISShape);
+ OCCT_DEFINE_STANDARD_RTTIEXT(SALOME_AISShape,ViewerData_AISShape)
};
DEFINE_STANDARD_HANDLE(SALOME_AISShape, ViewerData_AISShape)
#include "SALOME_Filter.hxx"
-IMPLEMENT_STANDARD_HANDLE (SALOME_Filter, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(SALOME_Filter, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(SALOME_Filter, MMgt_TShared)
SALOME_Filter::SALOME_Filter()
{
Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anObj) const = 0;
public:
- DEFINE_STANDARD_RTTI(SALOME_Filter);
+ OCCT_DEFINE_STANDARD_RTTIEXT(SALOME_Filter,MMgt_TShared)
};
DEFINE_STANDARD_HANDLE(SALOME_Filter, MMgt_TShared)
#include "SALOME_InteractiveObject.hxx"
-IMPLEMENT_STANDARD_HANDLE (SALOME_InteractiveObject, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(SALOME_InteractiveObject, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(SALOME_InteractiveObject, MMgt_TShared)
/*!
Default constructor
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
+#include <Basics_OCCTVersion.hxx>
+
#include <string>
class SALOME_InteractiveObject;
std::string myReference;
public:
- DEFINE_STANDARD_RTTI(SALOME_InteractiveObject);
+ OCCT_DEFINE_STANDARD_RTTIEXT(SALOME_InteractiveObject,MMgt_TShared)
};
#endif // SALOME_INTERACTIVEOBJECT_HXX
#include "SALOME_TypeFilter.hxx"
-IMPLEMENT_STANDARD_HANDLE (SALOME_TypeFilter, SALOME_Filter)
-IMPLEMENT_STANDARD_RTTIEXT(SALOME_TypeFilter, SALOME_Filter)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(SALOME_TypeFilter, SALOME_Filter)
/*!
Constructor
Standard_CString myKind;
public:
- DEFINE_STANDARD_RTTI(SALOME_TypeFilter);
+ OCCT_DEFINE_STANDARD_RTTIEXT(SALOME_TypeFilter,SALOME_Filter)
};
DEFINE_STANDARD_HANDLE(SALOME_TypeFilter, SALOME_Filter)
SET(_other_HEADERS
OCCViewer.h
OCCViewer_ClipPlane.h
- OCCViewer_Trihedron.h
OCCViewer_VService.h
OCCViewer_Utilities.h
)
OCCViewer_FontWidget.cxx
OCCViewer_SetRotationPointDlg.cxx
OCCViewer_ToolTip.cxx
- OCCViewer_Trihedron.cxx
OCCViewer_VService.cxx
OCCViewer_ViewFrame.cxx
OCCViewer_ViewManager.cxx
Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
- if ( anAISContext->IsSelected( thePlane ) )
+ if ( anAISContext->IsSelected( Handle(AIS_InteractiveObject)::DownCast(thePlane) ) )
{
return false;
}
Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
- if ( !anAISContext->IsSelected( thePlane ) )
+ if ( !anAISContext->IsSelected( Handle(AIS_InteractiveObject)::DownCast(thePlane) ) )
{
return false;
}
// process mouse click on the object
if ( myIsClickable )
{
- myViewer->getAISContext()->SetSelected( aPlane );
+ myViewer->getAISContext()->SetSelected( Handle(AIS_InteractiveObject)::DownCast(aPlane) );
emit planeClicked( aPlane );
}
#include <vector>
-class Handle(V3d_View);
+#include <V3d_View.hxx>
/*!
\class OCCViewer_ClipPlaneInteractor.
#include <Basics_OCCTVersion.hxx>
#include <V3d_View.hxx>
-#include <Visual3d_View.hxx>
#include <Geom_Plane.hxx>
#include <Prs3d_Presentation.hxx>
#include <Prs3d_PlaneAspect.hxx>
OCCViewer_ViewManager* aViewMgr = (OCCViewer_ViewManager*) myModel->getViewManager();
myInteractor = new OCCViewer_ClipPlaneInteractor( aViewMgr, this );
- connect( myInteractor, SIGNAL( planeClicked( const Handle_AIS_Plane& ) ), SLOT( onPlaneClicked( const Handle_AIS_Plane& ) ) );
- connect( myInteractor, SIGNAL( planeDragged( const Handle_AIS_Plane& ) ), SLOT( onPlaneDragged( const Handle_AIS_Plane& ) ) );
+ connect( myInteractor, SIGNAL( planeClicked( const Handle(AIS_Plane)& ) ), SLOT( onPlaneClicked( const Handle(AIS_Plane)& ) ) );
+ connect( myInteractor, SIGNAL( planeDragged( const Handle(AIS_Plane)& ) ), SLOT( onPlaneDragged( const Handle(AIS_Plane)& ) ) );
myLocalPlanes = myModel->getClipPlanes();
synchronize();
#include <SUIT_ViewManager.h>
-#include <SelectMgr_EntityOwner.hxx>
-
/*!
Constructor
if( !owner.IsNull() )
emit toolTipFor( owner, txt );
- Handle_AIS_InteractiveObject obj = aCont->DetectedInteractive();
+ Handle(AIS_InteractiveObject) obj = aCont->DetectedInteractive();
if( txt.isEmpty() && !obj.IsNull() )
emit toolTipFor( obj, txt );
#include <QtxToolTip.h>
#include <QFont>
+#include <SelectMgr_EntityOwner.hxx>
+#include <AIS_InteractiveObject.hxx>
+
class OCCViewer_ViewWindow;
-class Handle_SelectMgr_EntityOwner;
-class Handle_AIS_InteractiveObject;
/*!
\class OCCViewer_ToolTip
#define PI 3.14159265359
-IMPLEMENT_STANDARD_HANDLE( OCCViewer_Trihedron, AIS_InteractiveObject )
-IMPLEMENT_STANDARD_RTTIEXT( OCCViewer_Trihedron, AIS_InteractiveObject )
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( OCCViewer_Trihedron, AIS_InteractiveObject )
/*!
* Constructor
virtual void display();
- DEFINE_STANDARD_RTTI( OCCViewer_Trihedron )
+ OCCT_DEFINE_STANDARD_RTTIEXT(OCCViewer_Trihedron,AIS_InteractiveObject)
private:
unsigned int myTextList;
#else
#include <AIS_Drawer.hxx>
#endif
-#include <AIS_ListOfInteractive.hxx>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
#include <Graphic3d_Texture2Dmanual.hxx>
#include <Prs3d_LineAspect.hxx>
#include <Prs3d_TextAspect.hxx>
-#include <Visual3d_View.hxx>
-
#include <V3d_DirectionalLight.hxx>
#include <V3d_AmbientLight.hxx>
+#if OCC_VERSION_MAJOR < 7
+ #include <Visual3d_View.hxx>
+#endif
+
/*!
Get data for supported background modes: gradient types, identifiers and supported image formats
*/
#include <V3d_View.hxx>
#include <AIS_Trihedron.hxx>
#include <AIS_InteractiveContext.hxx>
+#include <AIS_ListOfInteractive.hxx>
#include <Graphic3d_SequenceOfHClipPlane.hxx>
class QKeyEvent;
class OCCViewer_ViewWindow;
class OCCViewer_ViewPort3d;
-class AIS_ListOfInteractive;
-
class QtxAction;
#include <QResizeEvent>
#include <QApplication>
-#include <Visual3d_View.hxx>
-#include <V3d_Viewer.hxx>
+#if OCC_VERSION_MAJOR < 7
+ #include <Visual3d_View.hxx>
+#endif
#if OCC_VERSION_LARGE > 0x06070100
#include <V3d_View.hxx>
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
QApplication::syncX();
#endif
- QRect rc = e->rect();
- if ( !myPaintersRedrawing )
+ if ( !myPaintersRedrawing ) {
+#if OCC_VERSION_MAJOR < 7
+ QRect rc = e->rect();
activeView()->Redraw( rc.x(), rc.y(), rc.width(), rc.height() );
+#else
+ activeView()->Redraw();
+#endif
+ }
}
OCCViewer_ViewPort::paintEvent( e );
myBusy = false;
#include "Qtx.h"
#include <V3d_View.hxx>
+#include <V3d_Viewer.hxx>
class QColor;
class QString;
class QRect;
-class Handle(V3d_Viewer);
-
#ifdef WIN32
#pragma warning ( disable:4251 )
#endif
#include <Graphic3d_RenderingParams.hxx>
#endif
+#if OCC_VERSION_MAJOR < 7
+ #include <Visual3d_View.hxx>
+#endif
-#include <Visual3d_View.hxx>
#include <V3d_Plane.hxx>
#include <V3d_Light.hxx>
if ( format != "PS" && format != "EPS")
res = myViewPort->getView()->Dump( fileName.toStdString().c_str() );
+#if OCC_VERSION_MAJOR < 7
Handle(Visual3d_View) a3dView = myViewPort->getView()->View();
+#else
+ Handle(Graphic3d_CView) a3dView = myViewPort->getView()->View();
+#endif
if (format == "PS")
res = a3dView->Export(strdup(qPrintable(fileName)), Graphic3d_EF_PostScript);
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+# additional include directories
+INCLUDE_DIRECTORIES(
+ ${CAS_INCLUDE_DIRS}
+)
+
+# libraries to link to
+SET(_link_LIBRARIES ${CAS_KERNEL})
+
ADD_LIBRARY(SalomePrs SALOME_Prs.cxx)
+TARGET_LINK_LIBRARIES(SalomePrs ${_link_LIBRARIES})
+
INSTALL(TARGETS SalomePrs EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES SALOME_Prs.h DESTINATION ${SALOME_INSTALL_HEADERS})
#define PRS_EXPORT
#endif
+#include <string>
+#include <list>
+
+#include <Basics_OCCTVersion.hxx>
+
class SALOME_View;
class SALOME_Displayer;
class SALOME_ListIO;
-class Handle_SALOME_InteractiveObject;
-
-#include <string>
-#include <list>
+#if OCC_VERSION_MAJOR >= 7
+ class SALOME_InteractiveObject;
+#else
+ class Handle_SALOME_InteractiveObject;
+#endif
/*!
\class SALOME_Prs
// New methods (asv)
//! \retval Return false.
- virtual bool isVisible( const Handle_SALOME_InteractiveObject& ){ return false; }
+ virtual bool isVisible( const Handle(SALOME_InteractiveObject)& ){ return false; }
virtual void Repaint() {} //!< Null body here.
virtual void GetVisible( SALOME_ListIO& theList ) {}
};
#include <DDS_DicItem.h>
#include <DDS_Dictionary.h>
-#include <TCollection_HAsciiString.hxx>
-#include <TCollection_HExtendedString.hxx>
-
QList<QDS_Datum*> QDS::_datumList;
/*!
#include <QString>
#include <QList>
-#include <TCollection_ExtendedString.hxx>
+#include <TCollection_HExtendedString.hxx>
+#include <TCollection_HAsciiString.hxx>
class QDS_Datum;
-class Handle(TCollection_HAsciiString);
-class Handle(TCollection_HExtendedString);
+
class QDS_EXPORT QDS
{
#include <AIS_ListOfInteractive.hxx>
-class Handle(AIS_InteractiveObject);
+class AIS_InteractiveObject;
class SOCC_EXPORT SOCC_Prs : public SALOME_OCCPrs
{
#include "SOCC_Prs.h"
#include "SOCC_ViewWindow.h"
-#include "OCCViewer_Trihedron.h"
-
#include "SUIT_Session.h"
#include "SUIT_ResourceMgr.h"
//#include "SUIT_Application.h"
//#include CORBA_CLIENT_HEADER(SALOMEDS)
#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <Visual3d_View.hxx>
#include <SALOME_AISShape.hxx>
#include <SALOME_AISObject.hxx>
ic->DisplayedObjects( aList );
AIS_ListIteratorOfListOfInteractive anIter( aList );
for ( ; anIter.More(); anIter.Next() ) {
- if ( (isTrihedronDisplayed && anIter.Value()->DynamicType() == STANDARD_TYPE( AIS_Trihedron )) ||
- anIter.Value()->DynamicType() == STANDARD_TYPE( OCCViewer_Trihedron ))
+ if ( (isTrihedronDisplayed && anIter.Value()->DynamicType() == STANDARD_TYPE( AIS_Trihedron ) ) )
continue;
// erase an object
#include "OCCViewer_ViewModel.h"
class SALOME_ListIO;
-class Handle(SALOME_InteractiveObject);
+class SALOME_InteractiveObject;
class SOCC_EXPORT SOCC_Viewer: public OCCViewer_Viewer, public SALOME_View
{
#include "SVTK_Selector.h"
#include "SVTK.h"
-class Handle(SALOME_InteractiveObject);
+class SALOME_InteractiveObject;
// undefining min and max because CASCADE's defines them and
// it clashes with std::min(), std::max()
#include "SVTK_Selection.h"
#include "SALOME_ListIO.hxx"
+#include <VTKViewer_Filter.h>
+
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <vtkObject.h>
-class Handle(VTKViewer_Filter);
-
+class SALOME_InteractiveObject;
class SALOME_Actor;
class SVTK_SelectionEvent;
class vtkActorCollection;
class vtkRenderer;
-class Handle(SALOME_InteractiveObject);
//! Define an abstract interface for selection in SVTK package
/*!
#include <QLineEdit>
#include <QComboBox>
-class QToolButton;
+#include <TColStd_ListOfInteger.hxx>
+#include <TColStd_ListOfReal.hxx>
-class TColStd_ListOfInteger;
-class TColStd_ListOfReal;
+class QToolButton;
// enumeration for ListView updating mode
enum UpdateType {
#include "VTKViewer_Filter.h"
-IMPLEMENT_STANDARD_HANDLE(VTKViewer_Filter, MMgt_TShared)
-IMPLEMENT_STANDARD_RTTIEXT(VTKViewer_Filter, MMgt_TShared)
+OCCT_IMPLEMENT_STANDARD_RTTIEXT(VTKViewer_Filter, MMgt_TShared)
/*!
* \class VTKViewer_Filter
#include <MMgt_TShared.hxx>
#include <Standard_DefineHandle.hxx>
+#include <Basics_OCCTVersion.hxx>
+
class VTKViewer_Actor;
DEFINE_STANDARD_HANDLE(VTKViewer_Filter, MMgt_TShared);
VTKViewer_Actor* myActor;
public:
- DEFINE_STANDARD_RTTI(VTKViewer_Filter)
+ OCCT_DEFINE_STANDARD_RTTIEXT(VTKViewer_Filter,MMgt_TShared)
};
#endif
ADD_DEFINITIONS(${CAS_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${CAS_LDPATH} ${CAS_KERNEL} ${CAS_TKV3d})
+SET(_link_LIBRARIES ${CAS_LDPATH} ${CAS_KERNEL} ${CAS_VIEWER})
# --- headers ---
#include "ViewerData_AISShape.hxx"
#ifdef USE_TEXTURED_SHAPE
-IMPLEMENT_STANDARD_HANDLE (ViewerData_AISShape, AIS_TexturedShape)
-IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_TexturedShape)
+ OCCT_IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_TexturedShape)
#else
-IMPLEMENT_STANDARD_HANDLE (ViewerData_AISShape, AIS_Shape)
-IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_Shape)
+ OCCT_IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_Shape)
#endif
/*!
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
+#include <Basics_OCCTVersion.hxx>
+
class ViewerData_AISShape
#ifdef USE_TEXTURED_SHAPE
: public AIS_TexturedShape
bool myIsClippable;
public:
- DEFINE_STANDARD_RTTI(ViewerData_AISShape)
+
+#ifdef USE_TEXTURED_SHAPE
+ OCCT_DEFINE_STANDARD_RTTIEXT(ViewerData_AISShape,AIS_TexturedShape)
+#else
+ OCCT_DEFINE_STANDARD_RTTIEXT(ViewerData_AISShape,AIS_Shape)
+#endif
};
#ifdef USE_TEXTURED_SHAPE
-DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_TexturedShape)
+ DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_TexturedShape)
#else
-DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_Shape)
+ DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_Shape)
#endif
#endif // _ViewerData_AISShape_HeaderFile