1 #ifndef __CPBASEQTAPPLICATION__ACTORPROPERTIES__H__
2 #define __CPBASEQTAPPLICATION__ACTORPROPERTIES__H__
4 #include <cpBaseQtApplication_Export.h>
5 #include <cpPlugins/Config.h>
10 #include <vtkRenderWindow.h>
11 #include <vtkSmartPointer.h>
13 // -------------------------------------------------------------------------
14 namespace cpBaseQtApplication
18 class cpBaseQtApplication_EXPORT ActorProperties
24 template< class _TObj >
28 const vtkSmartPointer< _TObj >& a,
29 const vtkSmartPointer< _TObj >& b ) const
30 { return( a.GetPointer( ) < b.GetPointer( ) ); }
32 typedef vtkSmartPointer< vtkProp > TActor;
33 typedef vtkSmartPointer< vtkRenderWindow > TRenderWindow;
34 typedef std::set< TActor, TCmp< vtkProp > > TActors;
35 typedef std::set< TRenderWindow, TCmp< vtkRenderWindow > > TWindows;
38 explicit ActorProperties( QWidget* parent = 0 );
39 virtual ~ActorProperties( );
41 virtual bool addActor( vtkProp* obj ) = 0;
42 bool addRenderWindow( vtkRenderWindow* win );
46 virtual void _updateWidgets( ) = 0;
55 #endif // __CPBASEQTAPPLICATION__ACTORPROPERTIES__H__