IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Various VTK utilities that extend functionality of the ActiViz VTK wrappers. More...
Static Public Member Functions | |||
static bool | ContainsActor (vtkRenderer renderer, vtkActor actor) | ||
Returns true if the specified renderer contains the specified actor. More... | |||
static vtkActor | GetFirstActor (vtkRenderer renderer) | ||
Returns the first non-null VTK actor contained in the specified vtkRenderer object. More... | |||
static int | GetNumActors (vtkRenderer renderer) | ||
Returns number of actors contained on the specified vtkRenderer object. If the specified renderer is null then 0 returned. More... | |||
static List< vtkActor > | GetActors (vtkRenderer renderer) | ||
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned. More... | |||
static vtkActor[] | GetActorsArray (vtkRenderer renderer) | ||
Returns an array of all non-null actors contained in the specified vtkRenderer object. If the specified VTK renderer is null then an empty array is returned. More... | |||
static void | RemoveAllActors (vtkRenderer renderer) | ||
Removes all actors form the specified renderer. More... | |||
static bool | ContainsActor2D (vtkRenderer renderer, vtkActor2D actor2D) | ||
Returns true if the specified renderer contains the specified actor2D. More... | |||
static vtkActor2D | GetFirstActor2D (vtkRenderer renderer) | ||
Returns the first non-null VTK actor2D contained in the specified vtkRenderer object. More... | |||
static int | GetNumActors2D (vtkRenderer renderer) | ||
Returns number of actors2D contained on the specified vtkRenderer object. If the specified renderer is null then 0 returned. More... | |||
static List< vtkActor2D > | GetActors2D (vtkRenderer renderer) | ||
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned. More... | |||
static vtkActor2D[] | GetActors2DArray (vtkRenderer renderer) | ||
Returns an array of all non-null actors2D contained in the specified vtkRenderer object. If the specified VTK renderer is null then an empty array is returned. More... | |||
static void | RemoveAllActors2D (vtkRenderer renderer) | ||
Removes all actors form the specified renderer. More... | |||
static bool | ContainsRenderer (vtkRenderWindow window, vtkRenderer renderer) | ||
Returns true if the specified renderer window contains the specified renderer. More... | |||
static vtkRenderer | GetFirstRenderer (vtkRenderWindow win) | ||
Returns the first non-null VTK renderrer contained in the specified vtkRenderWindow object. More... | |||
static int | GetNumRenderers (vtkRenderWindow win) | ||
Returns number of renderers contained on the specified vtkRenderWindow object. If VTK render window is null then 0 returned. More... | |||
static List< vtkRenderer > | GetRenderers (vtkRenderWindow win) | ||
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned. More... | |||
static vtkRenderer[] | GetRenderersArray (vtkRenderWindow win) | ||
Returns an array of all non-null renderers contained in the specified vtkRenderWindow object. If the specified VTK render window is null then an empty array is returned. More... | |||
static void | SetBounds (vtkCubeAxesActor actor, IBoundingBox bounds) | ||
static BoundingBox | CreateBounds (params vtkRenderer[] renderers) | ||
Creates and returns the minimal volume bounding box that contains all graphical objects of the specified vtkRenderer. More... | |||
static void | UpdateBounds (IBoundingBox bounds, params vtkRenderer[] renderers) | ||
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Renderers. More... | |||
static void | UpdateBounds (ref IBoundingBox bounds, params vtkRenderer[] renderers) | ||
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Renderers. More... | |||
static BoundingBox | CreateBounds (params vtkActor[] actors) | ||
Creates and returns the minimal volume bounding box that contains all graphical objects of the specified vtkActor. More... | |||
static void | UpdateBounds (IBoundingBox bounds, params vtkActor[] actors) | ||
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Actors. More... | |||
static void | UpdateBounds (ref IBoundingBox bounds, params vtkActor[] actors) | ||
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Actor. More... | |||
static bool | IsVtkForm (this IVtkFormContainer control) | ||
Returns a boolean value telling whether the specified object of type IVtkFormContainer actually contains a VTK rendering control (type RenderWindowControl). More... | |||
static Kitware.VTK.RenderWindowControl | GetVtkRenderWindowControl (this IVtkFormContainer control) | ||
Returns a VTK rendering control of type Kitware.VTK.RenderWindowControl that is contained in the specified object, or null if such a control is not contained or is null.
| |||
static Kitware.VTK.vtkRenderWindow | GetVtkRenderWindow (this IVtkFormContainer control) | ||
Returns a VTK rendering window of type Kitware.VTK.vtkRenderWindow that is contained in the specified object, or null if such a control is not contained or is null.
| |||
static Kitware.VTK.vtkRenderer | GetVtkRenderer (this IVtkFormContainer control) | ||
Returns a VTK renderer of type Kitware.VTK.vtkRenderer that is contained in the specified object, or null if such a VTK render control is not contained or its renderer is null.
| |||
static Kitware.VTK.vtkCamera | GetVtkCamera (this IVtkFormContainer control) | ||
Returns the active VTK camera of type Kitware.VTK.vtkCamera that is contained in the specified object, or null if VTK render control is not contained or its camera is null.
| |||
static void | LookUpTableRange (ColorScale scalarBarColorScale, int numValues, ref vtkLookupTable ScalarBarLookUpTable) | ||
Transform colorScale range to LookUpTable range directly. More... | |||
static void | LookUpTableRange (ColorScale scalarBarColorScale, int numValues, double minRangeLT, double maxRangeLT, ref vtkLookupTable ScalarBarLookUpTable) | ||
Transform colorScale range to LookUpTable range. Ranges are different. More... | |||
Various VTK utilities that extend functionality of the ActiViz VTK wrappers.
$A Igor Sep11;
|
inlinestatic |
Returns true if the specified renderer contains the specified actor.
renderer | Vtk renderer that is queried for containing the specified actor. |
actor | Actor for which we querry whether it is contained. |
Referenced by IG.Gr3d.VtkPlotter.AddActor(), and IG.Gr3d.VtkPlotter.RemoveActor().
|
inlinestatic |
Returns the first non-null VTK actor contained in the specified vtkRenderer object.
renderer | VTK renderer window (type) vtkRenderWindow for which a contained renderer is returned. |
|
inlinestatic |
Returns number of actors contained on the specified vtkRenderer object. If the specified renderer is null then 0 returned.
win | VTK renderer (type vtkRenderer) for which the number of contained actors is returned. |
|
inlinestatic |
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned.
win | VTK renderer window (type) vtkRenderWindow for which a list of contained renderers is returned. |
|
inlinestatic |
Returns an array of all non-null actors contained in the specified vtkRenderer object. If the specified VTK renderer is null then an empty array is returned.
renderer | VTK renderer (type vtkRenderer) for which an array of contained renderers is returned. |
|
inlinestatic |
Removes all actors form the specified renderer.
renderer | The renderer from which all actors are removed. |
Referenced by IG.Gr3d.VtkPlotter.RemoveAllActors().
|
inlinestatic |
Returns true if the specified renderer contains the specified actor2D.
renderer | Vtk renderer that is queried for containing the specified actor2D. |
actor | Actor2D for which we querry whether it is contained. |
$A Igor Oct11, Tako78 Dec13;
Referenced by IG.Gr3d.VtkPlotter.AddActor2D(), and IG.Gr3d.VtkPlotter.RemoveActor2D().
|
inlinestatic |
Returns the first non-null VTK actor2D contained in the specified vtkRenderer object.
renderer | VTK renderer window (type) vtkRenderWindow for which a contained renderer is returned. |
$A Igor Oct11, Tako78 Dec13;
|
inlinestatic |
Returns number of actors2D contained on the specified vtkRenderer object. If the specified renderer is null then 0 returned.
win | VTK renderer (type vtkRenderer) for which the number of contained actors2D is returned. |
$A Igor Oct11, Tako78 Dec13;
|
inlinestatic |
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned.
win | VTK renderer window (type) vtkRenderWindow for which a list of contained renderers is returned. |
$A Igor Oct11, Tako78 Dec13;
|
inlinestatic |
Returns an array of all non-null actors2D contained in the specified vtkRenderer object. If the specified VTK renderer is null then an empty array is returned.
renderer | VTK renderer (type vtkRenderer) for which an array of contained renderers is returned. |
$A Igor Oct11, Tako78 Dec13;
|
inlinestatic |
Removes all actors form the specified renderer.
renderer | The renderer from which all actors are removed. |
Referenced by IG.Gr3d.VtkPlotter.RemoveAllActor2Ds().
|
inlinestatic |
Returns true if the specified renderer window contains the specified renderer.
renderer | Vtk renderer window that is queried for containing the specified renderer. |
actor | Renderer for which we querry whether it is contained. |
Referenced by IG.Gr3d.VtkPlotter.AddRenderer().
|
inlinestatic |
Returns the first non-null VTK renderrer contained in the specified vtkRenderWindow object.
win | VTK renderer window (type vtkRenderWindow) for which a contained renderer is returned. |
|
inlinestatic |
Returns number of renderers contained on the specified vtkRenderWindow object. If VTK render window is null then 0 returned.
win | VTK renderer window (type vtkRenderWindow) for which the number of contained renderers is returned. |
Referenced by IG.Gr3d.VtkPlotter.AddRenderer().
|
inlinestatic |
Returns a list of all non-null renderers contained in the specified vtkRenderWindow object. If VTK render window is null then an empty list is returned.
win | VTK renderer window (type vtkRenderWindow) for which a list of contained renderers is returned. |
Referenced by IG.Gr3d.VtkPlotter.GetRendererIndex(), IG.Gr3d.VtkPlotter.RemoveActor(), IG.Gr3d.VtkPlotter.RemoveActor2D(), IG.Gr3d.VtkPlotter.RemoveAllActor2Ds(), and IG.Gr3d.VtkPlotter.RemoveAllActors().
|
inlinestatic |
Returns an array of all non-null renderers contained in the specified vtkRenderWindow object. If the specified VTK render window is null then an empty array is returned.
win | VTK renderer window (type vtkRenderWindow) for which an array of contained renderers is returned. |
|
inlinestatic |
|
inlinestatic |
Creates and returns the minimal volume bounding box that contains all graphical objects of the specified vtkRenderer.
actors | vtkRendererobjects for which the bounding box is created. Must not be null or empty array. |
Referenced by IG.Gr3d.TestVtkGraphicBase.ExampleAxisHendler(), and IG.Gr3d.TestVtkGraphicBase.ExampleStructuredGrid().
|
inlinestatic |
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Renderers.
renderers | VTK Renderers for which the bounding box is eventually resized in such a way that the renderers fit in it. All non-null elements must have the same dimension. |
bounds | Bounding box to be updated. It must be allocated and of the same dimension as the VTK actor according to which the bounding box is updated. |
Referenced by IG.Gr3d.TestVtkGraphicBase.ExampleQuadCells(), and IG.Gr3d.VtkDecorationHandler.UpdateBoundsInternal().
|
inlinestatic |
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Renderers.
renderers | VTK Renderers for which the bounding box is eventually resized in such a way that the renderers fit in it. All non-null elements must have the same dimension. |
bounds | Bounding box to be updated. It must be allocated and of the same dimension as the VTK actor according to which the bounding box is updated. |
|
inlinestatic |
Creates and returns the minimal volume bounding box that contains all graphical objects of the specified vtkActor.
actors | vtkActorobjects for which the bounding box is created. Must not be null or empty array. |
|
inlinestatic |
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Actors.
actors | VTK Actors for which the bounding box is eventually resized in such a way that the actor fits in it. If different than null then the first element must not be null. All non-null elements must have the same dimension. |
bounds | Bounding box to be updated. It must be allocated and of the same dimension as the VTK actor according to which the bounding box is updated. |
References IG.Num.IBoundingBox.Dimension, and IG.Num.IBoundingBox.Update().
|
inlinestatic |
Updates the specified bounding box in such a way that it also contains all graphic primitives of the specified VTK Actor.
actors | VTK Actor for which the bounding box is eventually resized in such a way that the actor fits in it. If null then noting happens. |
bounds | Bounding box to be updated. If allocated then it must be of the same dimension as actors . |
ArgumentException | When bounding box is not of the same dimension than actors and actors is different than 0. |
|
inlinestatic |
Returns a boolean value telling whether the specified object of type IVtkFormContainer actually contains a VTK rendering control (type RenderWindowControl).
control | Control (or more generally control container) that is checked. |
There is a possibility that its appropriate sub-control is of another type such as Panel, and the object just emulates a container of VTK render control. This may be the case because of conditional compilation, which enables manipulation of forms by form designer, since the VTK form is not compatible with the designer.
References IG.Gr3d.IVtkFormContainerGen< VtkControlType >.VtkRenderWindowControl.
|
inlinestatic |
Returns a VTK rendering control of type Kitware.VTK.RenderWindowControl that is contained in the specified object, or null if such a control is not contained or is null.
control | Control (or more generally control container) whose rendering control is attempted to be returned. |
There is a possibility that its appropriate sub-control is of another type such as Panel, and the object just emulates a container of VTK render control. This may be the case because of conditional compilation, which enables manipulation of forms by form designer, since the VTK form is not compatible with the designer.
References IG.Gr3d.IVtkFormContainerGen< VtkControlType >.VtkRenderWindowControl.
|
inlinestatic |
Returns a VTK rendering window of type Kitware.VTK.vtkRenderWindow that is contained in the specified object, or null if such a control is not contained or is null.
control | Control (or more generally control container) whose rendering window is attempted to be returned. |
There is a possibility that its appropriate sub-control is of another type such as Panel, and the object just emulates a container of VTK render control. This may be the case because of conditional compilation, which enables manipulation of forms by form designer, since the VTK form is not compatible with the designer.
References IG.Gr3d.IVtkFormContainerGen< VtkControlType >.VtkRenderWindowControl.
|
inlinestatic |
Returns a VTK renderer of type Kitware.VTK.vtkRenderer that is contained in the specified object, or null if such a VTK render control is not contained or its renderer is null.
control | Control (or more generally control container) whose VTK renderer is attempted to be returned. |
There is a possibility that its appropriate sub-control is of another type such as Panel, and the object just emulates a container of VTK render control. This may be the case because of conditional compilation, which enables manipulation of forms by form designer, since the VTK form is not compatible with the designer.
References IG.Gr3d.IVtkFormContainerGen< VtkControlType >.VtkRenderWindowControl.
|
inlinestatic |
Returns the active VTK camera of type Kitware.VTK.vtkCamera that is contained in the specified object, or null if VTK render control is not contained or its camera is null.
control | Control (or more generally control container) whose VTK camera is attempted to be returned. |
There is a possibility that its appropriate sub-control is of another type such as Panel, and the object just emulates a container of VTK render control. This may be the case because of conditional compilation, which enables manipulation of forms by form designer, since the VTK form is not compatible with the designer.
References IG.Gr3d.IVtkFormContainerGen< VtkControlType >.VtkRenderWindowControl.
|
inlinestatic |
Transform colorScale range to LookUpTable range directly.
scalarBarColorScale | Color scale. |
numValues | Number of cells in ScalarBar. |
ScalarBarLookUpTable | LookUpTable |
Tako78 Dec23;
References IG.Lib.ColorScale.MaxValue, and IG.Lib.ColorScale.MinValue.
|
inlinestatic |
Transform colorScale range to LookUpTable range. Ranges are different.
scalarBarColorScale | Color scale. |
numValues | Number of cells in ScalarBar. |
minRangeLT | Minimum range in LookUpTable. |
maxRangeLT | Maximum range in LookUpTable. |
ScalarBarLookUpTable | LookUpTable |
Tako78 Dec23;
References IG.Lib.color.B, IG.Lib.color.G, IG.Lib.ColorScaleBase.GetColor(), IG.Lib.ColorScale.MaxValue, IG.Lib.ColorScale.MinValue, IG.Lib.color.Opacity, and IG.Lib.color.R.