#ifndef __cpExtensions__QT__RendererWidget__h__ #define __cpExtensions__QT__RendererWidget__h__ #include #ifdef cpExtensions_QT4 #include #include #include // ------------------------------------------------------------------------- class vtkCamera; class vtkInteractorStyle; class vtkOrientationMarkerWidget; class vtkProp; class vtkPropCollection; class vtkRenderer; // ------------------------------------------------------------------------- namespace cpExtensions { namespace QT { /** */ class cpExtensions_EXPORT RendererWidget : public cpExtensions_QVTKWidget { Q_OBJECT; public: typedef RendererWidget Self; typedef cpExtensions_QVTKWidget Superclass; typedef std::map< std::string, vtkSmartPointer< vtkPropCollection > > TProps; public: explicit RendererWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 ); virtual ~RendererWidget( ); int GetQuadrant( ) const; void SetQuadrant( int q ); vtkRenderer* GetRenderer( ); const vtkRenderer* GetRenderer( ) const; vtkInteractorStyle* GetStyle( ); const vtkInteractorStyle* GetStyle( ) const; void SetStyle( vtkInteractorStyle* style ); vtkCamera* GetActiveCamera( ); const vtkCamera* GetActiveCamera( ) const; void AddViewProp( vtkProp* prop, const std::string& name ); void AddViewProps( vtkPropCollection* props, const std::string& name ); void AddAuxViewProp( vtkProp* prop, const std::string& name ); void AddAuxViewProps( vtkPropCollection* props, const std::string& name ); vtkPropCollection* GetViewProps( const std::string& name ); const vtkPropCollection* GetViewProps( const std::string& name ) const; vtkPropCollection* GetAuxViewProps( const std::string& name ); const vtkPropCollection* GetAuxViewProps( const std::string& name ) const; void RemoveViewProps( const std::string& name ); void RemoveViewProps( ); virtual void HideViewProps( const std::string& name ); virtual void ShowViewProps( const std::string& name ); virtual void ResetCamera( ); virtual void Render( ); protected: vtkSmartPointer< vtkRenderer > m_Renderer; vtkSmartPointer< vtkOrientationMarkerWidget > m_Marker; int m_Quadrant; TProps m_ViewProps; TProps m_AuxViewProps; }; } // ecapseman } // ecapseman #endif // cpExtensions_QT4 #endif // __cpExtensions__QT__RendererWidget__h__ // eof - $RCSfile$