- // Data management
- void Clear( );
- void SetMainImage( vtkImageData* image, const std::string& name );
- void SetMainActor( vtkImageActor* actor, const std::string& name );
- void AddImage( vtkImageData* image, const std::string& name );
- void AddImageActor( vtkImageActor* actor, const std::string& name );
- void AddMesh( vtkPolyData* mesh, const std::string& name );
- void AddMeshActor( vtkProp3D* actor, const std::string& name );
- void AddActor( vtkProp* actor, const std::string& name );
- const TActors& GetActors( const std::string& name ) const;
-
- void SetWindowLevel( double win, double lev );
- void ResetWindowLevel( );
-
- // Visual objects
- vtkRenderWindowInteractor* GetInteractor( unsigned int i );
- vtkRenderer* GetRenderer( unsigned int i );
- vtkRenderWindow* GetRenderWindow( unsigned int i );
-
- protected:
- void _AssociateSlices( );
+ void Configure( char q1, char q2, char q3, char q4 );
+
+ bool HasImage( ) const;
+ void SetImage( vtkImageData* image, const std::string& name );
+
+ bool Add( vtkDataSet* data, const std::string& name );
+
+ TProps GetViewProps( const std::string& name ) const;
+ TProps GetImageProps( ) const;
+
+ vtkRenderWindowInteractor* GetXInteractor( );
+ const vtkRenderWindowInteractor* GetXInteractor( ) const;
+ vtkRenderWindowInteractor* GetYInteractor( );
+ const vtkRenderWindowInteractor* GetYInteractor( ) const;
+ vtkRenderWindowInteractor* GetZInteractor( );
+ const vtkRenderWindowInteractor* GetZInteractor( ) const;
+ vtkRenderWindowInteractor* GetWInteractor( );
+ const vtkRenderWindowInteractor* GetWInteractor( ) const;
+
+ vtkRenderWindow* GetXRenderWindow( );
+ const vtkRenderWindow* GetXRenderWindow( ) const;
+ vtkRenderWindow* GetYRenderWindow( );
+ const vtkRenderWindow* GetYRenderWindow( ) const;
+ vtkRenderWindow* GetZRenderWindow( );
+ const vtkRenderWindow* GetZRenderWindow( ) const;
+ vtkRenderWindow* GetWRenderWindow( );
+ const vtkRenderWindow* GetWRenderWindow( ) const;
+
+ void ResetCameras( );
+ void Render( );
+
+ virtual std::set< std::string > GetActorsNames( ) const cpExtensions_OVERRIDE;
+ virtual bool IsWindowLevelImageActor( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual bool IsLUTImageActor( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual bool Is3DActor( const std::string& name ) const cpExtensions_OVERRIDE;
+
+ virtual void GetScalarRange( const std::string& name, double r[ 2 ] ) const cpExtensions_OVERRIDE;
+ virtual void GetWindowLevel( const std::string& name, double wl[ 2 ] ) const cpExtensions_OVERRIDE;
+ virtual double GetWindow( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual double GetLevel( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual char GetImageInterpolation( const std::string& name ) const cpExtensions_OVERRIDE;
+
+ virtual void GetColor( const std::string& name, double& r, double& g, double& b ) const cpExtensions_OVERRIDE;
+ virtual double GetOpacity( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual double GetPointSize( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual double GetLineWidth( const std::string& name ) const cpExtensions_OVERRIDE;
+ virtual int GetRepresentation( const std::string& name ) const cpExtensions_OVERRIDE;
+
+ virtual void SetScalarRange( const std::string& name, double r[ 2 ] ) cpExtensions_OVERRIDE;
+ virtual void SetScalarRange( const std::string& name, double min, double max ) cpExtensions_OVERRIDE;
+ virtual void SetWindowLevel( const std::string& name, double wl[ 2 ] ) cpExtensions_OVERRIDE;
+ virtual void SetWindowLevel( const std::string& name, double w, double l ) cpExtensions_OVERRIDE;
+ virtual void SetWindow( const std::string& name, double w ) cpExtensions_OVERRIDE;
+ virtual void SetLevel( const std::string& name, double l ) cpExtensions_OVERRIDE;
+ virtual void SetImageInterpolation( const std::string& name, char i ) cpExtensions_OVERRIDE;
+
+ virtual void SetColor( const std::string& name, double r, double g, double b ) cpExtensions_OVERRIDE;
+ virtual void SetOpacity( const std::string& name, double o ) cpExtensions_OVERRIDE;
+ virtual void SetPointSize( const std::string& name, double s ) cpExtensions_OVERRIDE;
+ virtual void SetLineWidth( const std::string& name, double w ) cpExtensions_OVERRIDE;
+ virtual void SetRepresentationToPoints( const std::string& name ) cpExtensions_OVERRIDE;
+ virtual void SetRepresentationToSurface( const std::string& name ) cpExtensions_OVERRIDE;
+ virtual void SetRepresentationToWireframe( const std::string& name ) cpExtensions_OVERRIDE;