IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Plotter class that uses a vtkRenderWindow object for plotting 3D graphics. More...
Classes | |
class | Accessor |
Class that is used to access the VtkPlotter's window in classes that are not derived from that class. Access can be granted by either inheriting from this class or by uding this class as proxy class. This class is immutable in the sense that plotter can be set only when constructed.Warning: One should avoid accessing the plotter's window where this is not absolutely necessary. More... | |
Public Member Functions | |
VtkPlotter () | |
VtkPlotter (vtkRenderWindow window) | |
Constructor. If a VTK window used for plotting is not specified (i.e., it is null) then a new window will be opened. | |
VtkPlotter (IVtkFormContainer formContainer) | |
Constructor. | |
VtkPlotter (Kitware.VTK.RenderWindowControl renderControl) | |
Constructor. | |
void | ResetCamera () |
Resets the camera position and shows complete plots. | |
void | SetWindow (vtkRenderWindow win) |
Sets the VTK render window. Use only in exceptional cases! | |
IVtkFormContainer | CreateVtkFormContainer () |
Tries to create and return a valid VTK Form container (of type IVtkFormContainer) that actually contains a VTK renderer control of type Kitware.VTK.RenderWindowControl. | |
bool | ContainsPlotObject (VtkPlotBase plotObject) |
Returns true if the specified VTK plotting object is contained on (registered with) the current VtkPlotter object, or false otherwise. | |
void | AddPlotObject (VtkPlotBase plotObject) |
Adds the specified plotting object to the list of plotting objects of the current VTK plotter. If the object is already on the list of plotting objects then it is not inserted again. | |
void | AddPlotObjects (params VtkPlotBase[] plotObjects) |
Adds the specified plotting objects to the list of plotting objects of the current VTK plotter. | |
void | RemovePlotObject (VtkPlotBase plotObject) |
Removes the specified plotting object from the list of plotting objects of the current VTK plotter, and disposes unmanaged resources used by that object. If the specified object is not on the list of plotting objects then nothing happens. | |
void | RemovePlotObjects (params VtkPlotBase[] plotObjects) |
Removes the specified plotting objects from the list of plotting objects of the current VTK plotter, and disposes unmanaged resources used by that objects. If no objects are specified then nothing happens. Also for the specified objects that are null or are not on the list, nothing happens. If removing one of the objects throws an exception then the remaining objects are removed without any disturbance. | |
void | setRenderer (vtkRenderer renderer) |
Sets the plotter's renderer. This should be used only exceptionally. Access may be degraded to protected in the future and method accessed through accessor class. | |
int | GetRendererIndex (vtkRenderer renderer) |
Returns index of the specified renderer on the VTK window of the current plotter, or -1 if the specified renderer is not contaied in the window. This method can be used for setting active renderer through its reference (use the returned index in ActiveRendererIndex() since there is no direct method to set active renderer by its reference. | |
int | AddRenderer (vtkRenderer renderer, bool setActive) |
Adds the specified renderer to the VTK window of the current plotter object, and returns its index. If the specified renderer already exist on the plotter object, then only its index is returned.If specified so by the setActive parameter then the specified renderer also becomes the active renderer active after adding. | |
void | AddActor (vtkActor actor) |
Adds the specified actor to the active renderer fo the current VTK plotter. | |
void | RemoveAllActors () |
Clears the active renderer (removes all actors on it). | |
void | RemoveActor (vtkActor actor) |
Removes the specified actor form the active renderer (if it exists on that renderer) and from any other renderer on which it is included (if not found on the active renderer) Nothing happens if the actor is not found on any renderer. | |
void | AddActor2D (vtkActor2D actor) |
Adds the specified 2D actor to the active renderer fo the current VTK plotter. | |
void | RemoveAllActor2Ds () |
Clears the active renderer of 2D actors (removes all 2D actors on it). | |
void | RemoveActor2D (vtkActor2D actor) |
Removes the specified 2D actor form the active renderer (if it exists on that renderer) and from any other renderer on which it is included (if not found on the active renderer). Nothing happens if the actor is not found on any renderer. | |
void | CalculateBoundsFromPlotsBounds () |
Recalculates bounds on co-ordinates according to all plots that are contained in the current plotter. | |
void | CalculateBoundsFromPlotsActors () |
Recalculates bounds on co-ordinates according to all plots that are contained in the current plotter. | |
void | ShowPlotWithoutRender () |
Basic things that must be done when showing the plot. | |
void | ShowPlot () |
Shows the plot in the rendering window and allows user interactor for rotating, zooming, etc. | |
void | SetBoundsScaled (IBoundingBox bounds) |
Sets the bounds of scaled graphs. | |
void | ScaleCoordinatesPlain (IVector original, ref IVector scaled) |
Scales coordinates from the physical (original) coordinate system to the scaled graphical coordinates. | |
void | CalculateScalingParameters () |
Calculates parameters for performing mapping on VTK actors. | |
void | ScaleActor (vtkActor actor) |
Performs scaling on the specified VTK actor. Also calculates parameters of mapping before scaling is applied.Scaling is performed regardless of the value of the scaling flad (the IsScaled property). | |
void | ScaleActorPlain (vtkActor actor) |
Performs scaling on the specified VTK actor. Parameters of mapping must be calculated before this method is called. This is done by the CalculateScalingParameters method.Scaling is performed regardless of the value of the scaling flad (the IsScaled property). | |
void | ScaleActors () |
Scales all actors on all plots of the bounding box. | |
void | ScaleDecorations () |
Scales decorations, including the axes, according to scaling defined on this plotter. Scaling is performed regardless of the value of the scaling flad (the IsScaled property). | |
void | Dispose () |
Implementation of IDisposable interface. | |
Static Public Member Functions | |
static void | ExampleAddTestGraph (VtkPlotter plotter) |
Adda a test graphics (a simple surface plot) to the specified plotter. | |
Public Attributes | |
VtkDecorationHandler | _decorationHandler |
const bool | DefaultFormContainerModal = true |
Default value of the flag that specifies whether VTK form containers are launched as modal forms. | |
Static Public Attributes | |
static color | DefaultBackground = new color(1,1,1) |
Default background color for new windows. | |
static bool | DefaultIsAllowedVtkForm = false |
Default value for flag indicating whether the VtkForm is used for standalone VTK windows. | |
static bool | DefaultIsAllowedVtkFormPlain = true |
Default value for flag indicating whether the VtkFormPlain is used for stand-alone VTK windows. | |
static bool | DefaultFormContainerParallel = false |
Default value of the flag that specifies whether or not form containers that contain VTK graphics are launched in parallel thread. | |
Protected Member Functions | |
void | ShowPlotEventhandler () |
void | ShowFormContainerInThread () |
Launches the form container. | |
void | ShowFormContainer () |
Shows the form container. Dependent on the value of the FormContainerParallel property, the form container may be shown in a parallel thread, which means that other form containers can be shown in parallel before the current one is closed. | |
virtual void | Dispose (bool disposing) |
Does the job of freeing resources. This method can be eventually overridden in derived classes (if they use other resources that must be freed - in addition to such resources of the current class). In the case of overriding this method, you should usually call the base.Dispose(disposing ). in the overriding method. | |
Protected Attributes | |
bool | _isAllowedVtkForm = DefaultIsAllowedVtkForm |
bool | _isAllowedVtkFormPlain = DefaultIsAllowedVtkFormPlain |
List< VtkPlotBase > | _plotObjects |
bool | _skipNullWindowCheck = false |
bool | _windowCreated = false |
Whether the VTK window has been created, used for internal communication between some methods. | |
bool | _isScaled = false |
vec3 | ScalingFactors = new vec3() |
Scaling factors - mapping parameters used when scaling VTK actors. | |
vec3 | ScalingTranslations = new vec3() |
Scaling translations - mapping parameters used when scaling VTK actors. | |
Static Protected Attributes | |
static int | _defaultOutputLevel = -1 |
Properties | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. | |
static int | DefaultOutputLevel [get, set] |
Gets or sets the default level of output for this class. When accessed for the first time, the current value of Util.OutputLevel is returned.If set to less than 0 then the first subsequent set access will return the current the current value of Util.OutputLevel. | |
int | OutputLevel [get, set] |
Level of output to the console for the current object. | |
bool | IsWindowStandalone [get, set] |
Whether a stand-alone window is launched to render the scene. | |
int | WindowSizeX [get, set] |
Window size in x direction (used when a stand-alone window is launched for rendering). | |
int | WindowSizeY [get, set] |
Window size in y direction (used when a stand-alone window is launched for rendering). | |
int | WindowPositionX [get, set] |
Window position in x direction (used when a stand-alone window is launched for rendering). | |
int | WindowPositionY [get, set] |
Window position in y direction (used when a stand-alone window is launched for rendering). | |
color | BackGround [get, set] |
Background color for the current plotter. If plotter is attached to a window that already has a renderer then background color of that renderer is set. If a renderer is created anew, this background color is assumed. | |
vtkRenderWindow | Window [get, set] |
VTK window used for rendering 3D graphics. Warning: setter should only be used in constructors. | |
static bool | DefaultIsAllowedAnyVtkForm [get, set] |
Modifies or retrieves a boolean value indicating whether any VTK form can be used by plotters of the current type for standalone VTK windows by default. | |
bool | IsAllowedAnyVtkForm [get, set] |
Modifies or retrieves a boolean value indicating whether any VTK form can be used for standalone VTK windows by the current plotter. | |
bool | IsAllowedVtkForm [get, set] |
Whether the VtkForm is used for standalone VTK windows. | |
bool | IsAllowedVtkFormPlain [get, set] |
Whether the VtkFormPlain is used for stand-alone VTK windows. | |
IVtkFormContainer | FormContainer [get, set] |
Form that eventually contains VTK render control (of type Kitware.VTK.RenderWindowControl). | |
Kitware.VTK.RenderWindowControl | RenderControl [get, set] |
VTK control of type Kitware.VTK.RenderWindowControl that can be used for rendering VTK graphics. | |
VtkDecorationHandler | DecorationHandler [get, set] |
Decoration handler that handles graph axes, title, labels, etc. | |
List< VtkPlotBase > | PlottingObjects [get, set] |
List of plotting objects contained on the current class. Setter is thread safe.Lazy evaluation - list object is automatically generated when first accessed. | |
int | NumRenderers [get] |
Returns the number of renderers that are currently attached to the VTK window that is associated with the current VTK plotter object. | |
int | ActiveRendererIndex [get, set] |
Gets or sets the index of the active renderer. This is the renderer on which mathod such as AddActor operate. | |
vtkRenderer | Renderer [get, set] |
Gets the active renderer of the current VTK plotter. | |
BoundingBox3d | BoundsCoordinates [get, set] |
Bounds on coordinates of points that define the plots. Everything on the plot should fit in these bounds. | |
bool | FormContainerModal [get, set] |
Whether or not VTK form containers are launched as modal forms. | |
bool | FormContainerParallel [get, set] |
Whether or not form containers that contain VTK graphics are launched in parallel thread. | |
bool | IsScaled [get, set] |
Specifies whether coordinates of graphic objects are scaled when plottting. | |
BoundingBox3d | BoundsScaled [get, set] |
Bounds on scaled coordinates graphic objects. Everything on the scaled plot should fit in these bounds. Getter always returns an allocated bounding box. By default, all coordinate bounds are set to [0, 1]. | |
Private Member Functions | |
~VtkPlotter () | |
Private Attributes | |
object | _mainLock = new object() |
int | _outputLevel = DefaultOutputLevel |
bool | _isWindowStandalone = true |
int | _windowSizeX = 600 |
int | _windowSizey = 600 |
int | _windowPositionX = 100 |
int | _windowPositionY = 50 |
color | _backGround = DefaultBackground |
vtkRenderWindow | _window |
IVtkFormContainer | _formContainer |
Kitware.VTK.RenderWindowControl | _renderControl |
int | _activeRendererIndex = 0 |
vtkRenderer | _activeRenderer |
BoundingBox3d | _boundsCoordinates |
bool | _formContainerModal = DefaultFormContainerModal |
bool | _formContainerParallel = DefaultFormContainerParallel |
BoundingBox3d | _boundsScaled |
Vector3d | vecOriginal = new Vector3d(0) |
Vector3d | vecScaled = new Vector3d(0) |
bool | disposed = false |
Plotter class that uses a vtkRenderWindow object for plotting 3D graphics.
$A Igor xx Oct11;
IG::Gr3d::VtkPlotter::VtkPlotter | ( | ) | [inline] |
IG::Gr3d::VtkPlotter::VtkPlotter | ( | vtkRenderWindow | window | ) | [inline] |
Constructor. If a VTK window used for plotting is not specified (i.e., it is null) then a new window will be opened.
window | VTK window to be used for plotting. |
IG::Gr3d::VtkPlotter::VtkPlotter | ( | IVtkFormContainer | formContainer | ) | [inline] |
Constructor.
formContainer | VTK form container to be used for access to VTK render window for plotting. |
IG::Gr3d::VtkPlotter::VtkPlotter | ( | Kitware.VTK.RenderWindowControl | renderControl | ) | [inline] |
Constructor.
formContainer | VTK control used for plotting. |
IG::Gr3d::VtkPlotter::~VtkPlotter | ( | ) | [inline, private] |
void IG::Gr3d::VtkPlotter::ResetCamera | ( | ) | [inline] |
Resets the camera position and shows complete plots.
$A Tako78 Oct12;
void IG::Gr3d::VtkPlotter::SetWindow | ( | vtkRenderWindow | win | ) | [inline] |
Sets the VTK render window. Use only in exceptional cases!
win | Window to be set. |
IVtkFormContainer IG::Gr3d::VtkPlotter::CreateVtkFormContainer | ( | ) | [inline] |
Tries to create and return a valid VTK Form container (of type IVtkFormContainer) that actually contains a VTK renderer control of type Kitware.VTK.RenderWindowControl.
Which type of forms are attempted to create is specified by properties like IsAllowedVtkForm and IsAllowedVtkFormPlain.
In some settings of conditional compilation, classes that should contain a proper VTK renderer control actually don't contain it. Therefore, this must be verified and a non-null object is returned only if it actually contains the proper VTK render control.
bool IG::Gr3d::VtkPlotter::ContainsPlotObject | ( | VtkPlotBase | plotObject | ) | [inline] |
Returns true if the specified VTK plotting object is contained on (registered with) the current VtkPlotter object, or false otherwise.
plotObject | Plotting object to be checked. |
void IG::Gr3d::VtkPlotter::AddPlotObject | ( | VtkPlotBase | plotObject | ) | [inline] |
Adds the specified plotting object to the list of plotting objects of the current VTK plotter. If the object is already on the list of plotting objects then it is not inserted again.
plotObject | VTK plotting object to be added on the currrent VtkPlotter object. |
void IG::Gr3d::VtkPlotter::AddPlotObjects | ( | params VtkPlotBase[] | plotObjects | ) | [inline] |
Adds the specified plotting objects to the list of plotting objects of the current VTK plotter.
plotObjects | Objects to be added to the list. |
void IG::Gr3d::VtkPlotter::RemovePlotObject | ( | VtkPlotBase | plotObject | ) | [inline] |
Removes the specified plotting object from the list of plotting objects of the current VTK plotter, and disposes unmanaged resources used by that object. If the specified object is not on the list of plotting objects then nothing happens.
plotObject | VTK plotting object to be removed from the currrent VtkPlotter object. |
void IG::Gr3d::VtkPlotter::RemovePlotObjects | ( | params VtkPlotBase[] | plotObjects | ) | [inline] |
Removes the specified plotting objects from the list of plotting objects of the current VTK plotter, and disposes unmanaged resources used by that objects. If no objects are specified then nothing happens. Also for the specified objects that are null or are not on the list, nothing happens. If removing one of the objects throws an exception then the remaining objects are removed without any disturbance.
plotObjects | Objects to be removed from the list. |
void IG::Gr3d::VtkPlotter::setRenderer | ( | vtkRenderer | renderer | ) | [inline] |
Sets the plotter's renderer. This should be used only exceptionally. Access may be degraded to protected in the future and method accessed through accessor class.
renderer | New renderer (can be null). |
int IG::Gr3d::VtkPlotter::GetRendererIndex | ( | vtkRenderer | renderer | ) | [inline] |
Returns index of the specified renderer on the VTK window of the current plotter, or -1 if the specified renderer is not contaied in the window. This method can be used for setting active renderer through its reference (use the returned index in ActiveRendererIndex() since there is no direct method to set active renderer by its reference.
renderer | Renderer whose index is returned. |
int IG::Gr3d::VtkPlotter::AddRenderer | ( | vtkRenderer | renderer, |
bool | setActive | ||
) | [inline] |
Adds the specified renderer to the VTK window of the current plotter object, and returns its index. If the specified renderer already exist on the plotter object, then only its index is returned.If specified so by the setActive parameter then the specified renderer also becomes the active renderer active after adding.
renderer | Renderer to be added. |
setActive | If true then the specified renderer is set as active renderer. |
void IG::Gr3d::VtkPlotter::AddActor | ( | vtkActor | actor | ) | [inline] |
Adds the specified actor to the active renderer fo the current VTK plotter.
actor |
void IG::Gr3d::VtkPlotter::RemoveAllActors | ( | ) | [inline] |
Clears the active renderer (removes all actors on it).
void IG::Gr3d::VtkPlotter::RemoveActor | ( | vtkActor | actor | ) | [inline] |
Removes the specified actor form the active renderer (if it exists on that renderer) and from any other renderer on which it is included (if not found on the active renderer) Nothing happens if the actor is not found on any renderer.
actor | Actor to be removed. |
void IG::Gr3d::VtkPlotter::AddActor2D | ( | vtkActor2D | actor | ) | [inline] |
Adds the specified 2D actor to the active renderer fo the current VTK plotter.
actor | A 2D actor to be added. |
void IG::Gr3d::VtkPlotter::RemoveAllActor2Ds | ( | ) | [inline] |
Clears the active renderer of 2D actors (removes all 2D actors on it).
void IG::Gr3d::VtkPlotter::RemoveActor2D | ( | vtkActor2D | actor | ) | [inline] |
Removes the specified 2D actor form the active renderer (if it exists on that renderer) and from any other renderer on which it is included (if not found on the active renderer). Nothing happens if the actor is not found on any renderer.
actor | The 2D actor to be removed. |
void IG::Gr3d::VtkPlotter::CalculateBoundsFromPlotsBounds | ( | ) | [inline] |
Recalculates bounds on co-ordinates according to all plots that are contained in the current plotter.
void IG::Gr3d::VtkPlotter::CalculateBoundsFromPlotsActors | ( | ) | [inline] |
Recalculates bounds on co-ordinates according to all plots that are contained in the current plotter.
void IG::Gr3d::VtkPlotter::ShowPlotEventhandler | ( | ) | [inline, protected] |
void IG::Gr3d::VtkPlotter::ShowPlotWithoutRender | ( | ) | [inline] |
Basic things that must be done when showing the plot.
static void IG::Gr3d::VtkPlotter::ExampleAddTestGraph | ( | VtkPlotter | plotter | ) | [inline, static] |
Adda a test graphics (a simple surface plot) to the specified plotter.
plotter | Plotter where test graphics is added. |
void IG::Gr3d::VtkPlotter::ShowFormContainerInThread | ( | ) | [inline, protected] |
Launches the form container.
void IG::Gr3d::VtkPlotter::ShowFormContainer | ( | ) | [inline, protected] |
Shows the form container. Dependent on the value of the FormContainerParallel property, the form container may be shown in a parallel thread, which means that other form containers can be shown in parallel before the current one is closed.
void IG::Gr3d::VtkPlotter::ShowPlot | ( | ) | [inline] |
Shows the plot in the rendering window and allows user interactor for rotating, zooming, etc.
void IG::Gr3d::VtkPlotter::SetBoundsScaled | ( | IBoundingBox | bounds | ) | [inline] |
Sets the bounds of scaled graphs.
bounds | Bounds of scaled graph to be set. Bounds are just copied to the internal data structure. |
Scales coordinates from the physical (original) coordinate system to the scaled graphical coordinates.
original | Vector of physical (original) coordinates. |
scaled | Vector of graphical coordinates. |
void IG::Gr3d::VtkPlotter::CalculateScalingParameters | ( | ) | [inline] |
Calculates parameters for performing mapping on VTK actors.
void IG::Gr3d::VtkPlotter::ScaleActor | ( | vtkActor | actor | ) | [inline] |
Performs scaling on the specified VTK actor. Also calculates parameters of mapping before scaling is applied.Scaling is performed regardless of the value of the scaling flad (the IsScaled property).
actor | Actor whose coordinates are mapped (scaled). |
void IG::Gr3d::VtkPlotter::ScaleActorPlain | ( | vtkActor | actor | ) | [inline] |
Performs scaling on the specified VTK actor. Parameters of mapping must be calculated before this method is called. This is done by the CalculateScalingParameters method.Scaling is performed regardless of the value of the scaling flad (the IsScaled property).
actor | Actor whose coordinates are mapped (scaled). |
void IG::Gr3d::VtkPlotter::ScaleActors | ( | ) | [inline] |
Scales all actors on all plots of the bounding box.
void IG::Gr3d::VtkPlotter::ScaleDecorations | ( | ) | [inline] |
Scales decorations, including the axes, according to scaling defined on this plotter. Scaling is performed regardless of the value of the scaling flad (the IsScaled property).
void IG::Gr3d::VtkPlotter::Dispose | ( | ) | [inline] |
Implementation of IDisposable interface.
virtual void IG::Gr3d::VtkPlotter::Dispose | ( | bool | disposing | ) | [inline, protected, virtual] |
Does the job of freeing resources. This method can be eventually overridden in derived classes (if they use other resources that must be freed - in addition to such resources of the current class). In the case of overriding this method, you should usually call the base.Dispose(disposing ). in the overriding method.
disposing | Tells whether the method has been called form Dispose() method. |
object IG::Gr3d::VtkPlotter::_mainLock = new object() [private] |
int IG::Gr3d::VtkPlotter::_defaultOutputLevel = -1 [static, protected] |
int IG::Gr3d::VtkPlotter::_outputLevel = DefaultOutputLevel [private] |
bool IG::Gr3d::VtkPlotter::_isWindowStandalone = true [private] |
int IG::Gr3d::VtkPlotter::_windowSizeX = 600 [private] |
int IG::Gr3d::VtkPlotter::_windowSizey = 600 [private] |
int IG::Gr3d::VtkPlotter::_windowPositionX = 100 [private] |
int IG::Gr3d::VtkPlotter::_windowPositionY = 50 [private] |
color IG::Gr3d::VtkPlotter::DefaultBackground = new color(1,1,1) [static] |
Default background color for new windows.
color IG::Gr3d::VtkPlotter::_backGround = DefaultBackground [private] |
vtkRenderWindow IG::Gr3d::VtkPlotter::_window [private] |
bool IG::Gr3d::VtkPlotter::DefaultIsAllowedVtkForm = false [static] |
Default value for flag indicating whether the VtkForm is used for standalone VTK windows.
bool IG::Gr3d::VtkPlotter::DefaultIsAllowedVtkFormPlain = true [static] |
Default value for flag indicating whether the VtkFormPlain is used for stand-alone VTK windows.
bool IG::Gr3d::VtkPlotter::_isAllowedVtkForm = DefaultIsAllowedVtkForm [protected] |
bool IG::Gr3d::VtkPlotter::_isAllowedVtkFormPlain = DefaultIsAllowedVtkFormPlain [protected] |
Kitware.VTK.RenderWindowControl IG::Gr3d::VtkPlotter::_renderControl [private] |
List<VtkPlotBase> IG::Gr3d::VtkPlotter::_plotObjects [protected] |
int IG::Gr3d::VtkPlotter::_activeRendererIndex = 0 [private] |
vtkRenderer IG::Gr3d::VtkPlotter::_activeRenderer [private] |
bool IG::Gr3d::VtkPlotter::_skipNullWindowCheck = false [protected] |
const bool IG::Gr3d::VtkPlotter::DefaultFormContainerModal = true |
Default value of the flag that specifies whether VTK form containers are launched as modal forms.
bool IG::Gr3d::VtkPlotter::_formContainerModal = DefaultFormContainerModal [private] |
bool IG::Gr3d::VtkPlotter::DefaultFormContainerParallel = false [static] |
Default value of the flag that specifies whether or not form containers that contain VTK graphics are launched in parallel thread.
bool IG::Gr3d::VtkPlotter::_formContainerParallel = DefaultFormContainerParallel [private] |
bool IG::Gr3d::VtkPlotter::_windowCreated = false [protected] |
Whether the VTK window has been created, used for internal communication between some methods.
bool IG::Gr3d::VtkPlotter::_isScaled = false [protected] |
Vector3d IG::Gr3d::VtkPlotter::vecOriginal = new Vector3d(0) [private] |
Vector3d IG::Gr3d::VtkPlotter::vecScaled = new Vector3d(0) [private] |
vec3 IG::Gr3d::VtkPlotter::ScalingFactors = new vec3() [protected] |
Scaling factors - mapping parameters used when scaling VTK actors.
vec3 IG::Gr3d::VtkPlotter::ScalingTranslations = new vec3() [protected] |
Scaling translations - mapping parameters used when scaling VTK actors.
bool IG::Gr3d::VtkPlotter::disposed = false [private] |
object IG::Gr3d::VtkPlotter::Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
Implements IG::Lib::ILockable.
int IG::Gr3d::VtkPlotter::DefaultOutputLevel [static, get, set] |
Gets or sets the default level of output for this class. When accessed for the first time, the current value of Util.OutputLevel is returned.If set to less than 0 then the first subsequent set access will return the current the current value of Util.OutputLevel.
int IG::Gr3d::VtkPlotter::OutputLevel [get, set] |
Level of output to the console for the current object.
bool IG::Gr3d::VtkPlotter::IsWindowStandalone [get, set] |
Whether a stand-alone window is launched to render the scene.
int IG::Gr3d::VtkPlotter::WindowSizeX [get, set] |
Window size in x direction (used when a stand-alone window is launched for rendering).
int IG::Gr3d::VtkPlotter::WindowSizeY [get, set] |
Window size in y direction (used when a stand-alone window is launched for rendering).
int IG::Gr3d::VtkPlotter::WindowPositionX [get, set] |
Window position in x direction (used when a stand-alone window is launched for rendering).
int IG::Gr3d::VtkPlotter::WindowPositionY [get, set] |
Window position in y direction (used when a stand-alone window is launched for rendering).
color IG::Gr3d::VtkPlotter::BackGround [get, set] |
Background color for the current plotter. If plotter is attached to a window that already has a renderer then background color of that renderer is set. If a renderer is created anew, this background color is assumed.
vtkRenderWindow IG::Gr3d::VtkPlotter::Window [get, set, protected] |
VTK window used for rendering 3D graphics. Warning: setter should only be used in constructors.
bool IG::Gr3d::VtkPlotter::DefaultIsAllowedAnyVtkForm [static, get, set] |
Modifies or retrieves a boolean value indicating whether any VTK form can be used by plotters of the current type for standalone VTK windows by default.
bool IG::Gr3d::VtkPlotter::IsAllowedAnyVtkForm [get, set] |
Modifies or retrieves a boolean value indicating whether any VTK form can be used for standalone VTK windows by the current plotter.
bool IG::Gr3d::VtkPlotter::IsAllowedVtkForm [get, set] |
Whether the VtkForm is used for standalone VTK windows.
bool IG::Gr3d::VtkPlotter::IsAllowedVtkFormPlain [get, set] |
Whether the VtkFormPlain is used for stand-alone VTK windows.
IVtkFormContainer IG::Gr3d::VtkPlotter::FormContainer [get, set, protected] |
Form that eventually contains VTK render control (of type Kitware.VTK.RenderWindowControl).
Kitware.VTK.RenderWindowControl IG::Gr3d::VtkPlotter::RenderControl [get, set, protected] |
VTK control of type Kitware.VTK.RenderWindowControl that can be used for rendering VTK graphics.
VtkDecorationHandler IG::Gr3d::VtkPlotter::DecorationHandler [get, set] |
Decoration handler that handles graph axes, title, labels, etc.
List<VtkPlotBase> IG::Gr3d::VtkPlotter::PlottingObjects [get, set, protected] |
List of plotting objects contained on the current class. Setter is thread safe.Lazy evaluation - list object is automatically generated when first accessed.
int IG::Gr3d::VtkPlotter::NumRenderers [get] |
Returns the number of renderers that are currently attached to the VTK window that is associated with the current VTK plotter object.
If htere is currently no VTK rendering windows associated with the plotter, there still can be an active renderer that has been allocated for adding actors, and in this case 1 is returned.
int IG::Gr3d::VtkPlotter::ActiveRendererIndex [get, set] |
Gets or sets the index of the active renderer. This is the renderer on which mathod such as AddActor operate.
vtkRenderer IG::Gr3d::VtkPlotter::Renderer [get, set, protected] |
Gets the active renderer of the current VTK plotter.
BoundingBox3d IG::Gr3d::VtkPlotter::BoundsCoordinates [get, set] |
Bounds on coordinates of points that define the plots. Everything on the plot should fit in these bounds.
bool IG::Gr3d::VtkPlotter::FormContainerModal [get, set, private] |
Whether or not VTK form containers are launched as modal forms.
bool IG::Gr3d::VtkPlotter::FormContainerParallel [get, set, private] |
Whether or not form containers that contain VTK graphics are launched in parallel thread.
bool IG::Gr3d::VtkPlotter::IsScaled [get, set] |
Specifies whether coordinates of graphic objects are scaled when plottting.
BoundingBox3d IG::Gr3d::VtkPlotter::BoundsScaled [get, set] |
Bounds on scaled coordinates graphic objects. Everything on the scaled plot should fit in these bounds. Getter always returns an allocated bounding box. By default, all coordinate bounds are set to [0, 1].