SIVIC API
0.9.26
|
#include <svkDetailedPlotDirector.h>
Public Member Functions | |
vtkTypeMacro (svkDetailedPlotDirector, vtkObject) | |
virtual void | AddInput (vtkDataArray *array, int component, vtkDataObject *sourceToObserve) |
virtual void | RemoveAllInputs () |
virtual void | RemoveInput (vtkDataArray *array) |
virtual void | SetPlotColor (int plotIndex, double *rgb) |
virtual void | SetBackgroundColor (double *rgb) |
virtual void | SetBackgroundOpacity (double opacity) |
virtual void | SetBackgroundVisibility (bool visible) |
virtual void | SetAnnotationTextVisibility (bool visible) |
virtual void | SetLineWidth (float width) |
virtual void | SetAnnotationText (string text) |
virtual void | SetIndexRange (int lower, int upper) |
virtual void | GenerateAbscissa (double firstPointValue, double lastPointValue) |
virtual void | GenerateAbscissa (svkDcmHeader *header, svkSpecPoint::UnitType type) |
virtual void | SetYRange (double lower, double upper) |
virtual svkXYPlotActor * | GetPlotActor () |
virtual vtkAxisActor2D * | GetRuler () |
virtual void | AddOnMouseMoveObserver (vtkRenderWindowInteractor *rwi) |
virtual void | RemoveOnMouseMoveObserver (vtkRenderWindowInteractor *rwi) |
virtual int | GetPointIndexFromXValue (double xValue) |
virtual double | GetYValueFromIndex (int plotIndex, int pointIndex) |
virtual double | GetYValueFromXValue (int plotIndex, double xValue) |
virtual void | Refresh () |
Static Public Member Functions | |
static svkDetailedPlotDirector * | New () |
Protected Member Functions | |
svkDetailedPlotDirector () | |
Constructor. More... | |
~svkDetailedPlotDirector () | |
Destructor. More... | |
The purpose if this class is to provide a simplified interface to the svkXYPlotActor that will work with simple vtkDataArray objects instead of requiring full fledged vtkDataObjects.
|
protected |
|
protected |
Destructor.
|
virtual |
Adds an input to the actor. This will add a plot line of the given component. The vtkDataObject input is optionally and is only used to regenerate the magnitude array when the given object is modified.
array | |
component |
References svkXYPlotActor::AddDataObjectInput(), svkDetailedPlotDirector::GenerateAbscissa(), svkXYPlotActor::GetDataObjectInputConnectionHolder(), svkXYPlotActor::SetDataObjectXComponent(), svkXYPlotActor::SetDataObjectYComponent(), and svkXYPlotActor::SetXValuesToValue().
Referenced by svkPlotGridView::UpdateDetailedPlot().
|
virtual |
Adds the observer to watch mouse movements and updates the cursor.
rwi |
Referenced by svkPlotGridView::SetTlcBrc().
|
virtual |
Generates the array for the abscissa.
lower | |
upper |
Referenced by svkDetailedPlotDirector::AddInput(), svkDetailedPlotDirector::GenerateAbscissa(), svkPlotGridView::SetPlotUnits(), and svkPlotGridView::UpdateDetailedPlot().
|
virtual |
Generates the array for the abscissa.
header | |
type |
References svkSpecPoint::ConvertPosUnits(), svkDetailedPlotDirector::GenerateAbscissa(), svkSpecPoint::New(), svkSpecPoint::PTS, and svkSpecPoint::SetDcmHeader().
|
virtual |
|
virtual |
For i given x-value return the index it closes matches in the adscissa array. If it is not within the abscissa, return -1.
xValue |
Referenced by svkDetailedPlotDirector::GetYValueFromXValue().
|
virtual |
|
virtual |
For a given index in the abscissa array find the corresponding Y value for the given plot index.
plotIndex | |
pointIndex |
References svkXYPlotActor::GetDataObjectInputConnectionHolder(), and svkXYPlotActor::GetDataObjectYComponent().
Referenced by svkDetailedPlotDirector::GetYValueFromXValue().
|
virtual |
For a given X value, find the corresponding Y value.
plotIndex | |
xValue |
References svkDetailedPlotDirector::GetPointIndexFromXValue(), and svkDetailedPlotDirector::GetYValueFromIndex().
|
static |
Referenced by svkPlotGridView::svkPlotGridView().
|
virtual |
Simply calls modified on the actor so that it will re-render. This recalculates the values in the plots.
Referenced by svkPlotGridView::Refresh(), and svkDetailedPlotDirector::SetPlotColor().
|
virtual |
Removes all current inputs from the plot actor. Also removes callbacks.
References svkXYPlotActor::RemoveAllDataSetInputConnections().
Referenced by svkPlotGridView::UpdateDetailedPlot().
|
virtual |
NOT YET IMPLEMENTED
array |
|
virtual |
|
virtual |
Sets an annotation. The title is used for this.
Referenced by svkPlotGridView::UpdateDetailedPlotOverlay().
|
virtual |
Sets the visibilty of the annotation text.
Referenced by svkPlotGridView::TurnPropOff(), and svkPlotGridView::TurnPropOn().
|
virtual |
References svkXYPlotActor::GetChartBoxProperty().
Referenced by svkPlotGridView::SetColorSchema(), and svkPlotGridView::UpdateDetailedPlotOverlay().
|
virtual |
Sets the background opacity
References svkXYPlotActor::GetChartBoxProperty().
Referenced by svkPlotGridView::SetOverlayOpacity(), and svkPlotGridView::UpdateDetailedPlotOverlay().
|
virtual |
Sets the visibilty of the background.
Referenced by svkPlotGridView::TurnPropOff(), and svkPlotGridView::TurnPropOn().
|
virtual |
Sets the range for the abscissa using indecies.
lower | |
upper |
Referenced by svkPlotGridView::SetWindowLevelRange(), and svkPlotGridView::UpdateDetailedPlot().
|
virtual |
Sets the line width.
References svkXYPlotActor::SetLineWidth().
Referenced by svkPlotGridView::SetPlotLineWidth().
|
virtual |
Sets the color for a given plot.
plotIndex | |
rgb |
References svkDetailedPlotDirector::Refresh(), and svkXYPlotActor::SetPlotColor().
Referenced by svkPlotGridView::SetColorSchema(), and svkPlotGridView::UpdateDetailedPlot().
|
virtual |
Sets the vertical range of the data.
lower | |
upper |
Referenced by svkPlotGridView::SetWindowLevelRange().
vtkTypeMacro | ( | svkDetailedPlotDirector | , |
vtkObject | |||
) |