IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Gr3d.VtkSurfacePlotBase Class Reference

Contains basic settings for various surface and contour plots. More...

+ Inheritance diagram for IG.Gr3d.VtkSurfacePlotBase:
+ Collaboration diagram for IG.Gr3d.VtkSurfacePlotBase:

Public Member Functions

 VtkSurfacePlotBase (VtkPlotter plotter)
 Constructor. Just calls base constructor with the same name. More...
 
void CreateCustomPlot ()
 Updates custom plots that have been accumulates since the last update (or since construction of the current plot object). More...
 
void CreateCustomPlotAndShow ()
 
void AddPoint (double x, double y, double z)
 Adds a point with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called. More...
 
void AddPoint (vec3 p)
 Adds a point with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called. More...
 
void AddPoints (params vec3[] points)
 Adds a set of points with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called. More...
 
void AddLine (double x1, double y1, double z1, double x2, double y2, double z2)
 Adds a line with specified endpoint coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called. More...
 
void AddLine (vec3 p1, vec3 p2)
 
void AddLines (params vec3[] points)
 
void AddTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
 
void AddTriangle (vec3 p1, vec3 p2, vec3 p3)
 
void AddTriangularStrip (params vec3[] points)
 
void AddQuadrilateral (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4)
 
void AddQuadrilateral (vec3 p1, vec3 p2, vec3 p3, vec3 p4)
 
void AddFilledTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
 
void AddFilledTriangle (vec3 p1, vec3 p2, vec3 p3)
 
void AddFilledTriangularStrip (params vec3[] points)
 
void AddBorderedTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
 
void AddBorderedTriangle (vec3 p1, vec3 p2, vec3 p3)
 
void AddBorderedTriangularStrip (params vec3[] points)
 
void AddFilledQuadrilateral (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4)
 
void AddFilledQuadrilateral (vec3 p1, vec3 p2, vec3 p3, vec3 p4)
 
void AddBorderedQuadrilateral (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4)
 
void AddBorderedQuadrilateral (vec3 p1, vec3 p2, vec3 p3, vec3 p4)
 
- Public Member Functions inherited from IG.Gr3d.VtkPlotBase
 VtkPlotBase (VtkPlotter plotter)
 Constructor. More...
 
bool ContainsActor (vtkActor actor)
 Returns true if the specified VTK Actor is contained on (registered with) the current VtkPlotBase object, or false otherwise. More...
 
void AddActor (vtkActor actor)
 Adds the specified actor to the list of actors of the current VTK plotter. More...
 
void AddActors (params vtkActor[] actors)
 Adds the specified actors to the list of actors of the current VTK plotter. More...
 
void AddActorsToPlotter ()
 Adds all actors from the current plot to the plotter that this plot is assigned to. More...
 
void AddActorsToPlotter (VtkPlotter plotter)
 Adds all actors from the current plot to the specified plotter. More...
 
void RemoveActor (vtkActor actor)
 Removes the specified actor from the list of actors of the current VTK plotter, and disposes unmanaged resources used by that object. More...
 
void RemoveActors (params vtkActor[] actors)
 Removes the specified actors from the list of actors of the current VTK plotter, and disposes unmanaged resources used by that objects. More...
 
void RemoveActors ()
 Removes all actors that are currently contained on the list of actors of the current object. More...
 
void UpdateBoundsOnActors (IBoundingBox bounds)
 Updates the specified bounding box in such a way that all actors from the current plot object fit into it. More...
 
void ScaleActors ()
 Scales all actors on the current plot by the plotter's scaling method. More...
 
bool ContainsAlgorithm (vtkAlgorithm algorithm)
 Returns true if the specified VTK algorithm is contained on (registered with) the current VtkPlotter object, or false otherwise. More...
 
void AddAlgorithm (vtkAlgorithm algorithm)
 Adds the specified algorithm to the list of algorithms of the current VTK plotter. More...
 
void AddAlgorithms (params vtkAlgorithm[] algorithms)
 Adds the specified algorithms to the list of algorithms of the current VTK plotter. More...
 
void RemoveAlgorithm (vtkAlgorithm algorithm)
 Removes the specified algorithm from the list of algorithms of the current VTK plotter, and disposes unmanaged resources used by that object. More...
 
void RemoveAlgorithms (params vtkAlgorithm[] algorithms)
 Removes the specified algorithms from the list of algorithms of the current VTK plotter, and disposes unmanaged resources used by that objects. More...
 
bool ContainsMapper (vtkMapper mapper)
 Returns true if the specified VTK mapper is contained on (registered with) the current VtkPlotter object, or false otherwise. More...
 
void AddMapper (vtkMapper mapper)
 Adds the specified mapper to the list of mappers of the current VTK plotter. More...
 
void AddMappers (params vtkMapper[] mappers)
 Adds the specified mappers to the list of mappers of the current VTK plotter. More...
 
void RemoveMapper (vtkMapper mapper)
 Removes the specified mapper from the list of mappers of the current VTK plotter, and disposes unmanaged resources used by that object. More...
 
void RemoveMappers (params vtkMapper[] mappers)
 Removes the specified mappers from the list of mappers of the current VTK plotter, and disposes unmanaged resources used by that objects. More...
 
bool ContainsDataset (vtkDataSet dataset)
 Returns true if the specified VTK dataset is contained on (registered with) the current VtkPlotter object, or false otherwise. More...
 
void AddDataset (vtkDataSet dataset)
 Adds the specified dataset to the list of datasets of the current VTK plotter. More...
 
void AddDatasets (params vtkDataSet[] datasets)
 Adds the specified datasets to the list of datasets of the current VTK plotter. More...
 
void RemoveDataset (vtkDataSet dataset)
 Removes the specified dataset from the list of datasets of the current VTK plotter, and disposes unmanaged resources used by that object. More...
 
void RemoveDatasets (params vtkDataSet[] datasets)
 Removes the specified datasets from the list of datasets of the current VTK plotter, and disposes unmanaged resources used by that objects. More...
 
void UpdateBoundsCoordinates (bool forced, double x, double y, double z)
 Updates the bounding box of coordinates (BoundsCoordinates), if the conditions are met, in such a way that the point with the specified coordinates fits witin it. More...
 
void UpdateBoundsCoordinates (double x, double y, double z)
 Updates the bounding box of coordinates (BoundsCoordinates), if the AutoUpdateBoundsCoordinates flag is true, in such a way that the point with the specified coordinates fits witin it. More...
 
void UpdateBoundsCoordinates (bool forced, vec3 pointCoordinates)
 Updates the bounding box of coordinates (BoundsCoordinates), if the conditions are met, in such a way that the point with the specified coordinates fits witin it. More...
 
void UpdateBoundsCoordinates (vec3 pointCoordinates)
 Updates the bounding box of coordinates (BoundsCoordinates), if the AutoUpdateBoundsCoordinates flag is true, in such a way that the point with the specified coordinates fits witin it. More...
 
abstract void Create ()
 Creates the plot. More...
 
virtual void ShowPlot ()
 Makes the associated plotter show the plots that are currently added. More...
 
virtual void CreateAndShow ()
 Creates the plot and makes the associated plotter show it. More...
 
void Dispose ()
 Implementation of IDisposable interface. More...
 

Public Attributes

double _pointColorOpacity = 1
 

Static Public Attributes

static string DefaultValuesFieldName = "values"
 Default name of the field that contains node values for plotted grids. More...
 
static bool DefaultLinesVisible = true
 Default value of the flag indicating whether lines and contours will be shown. More...
 
static double DefaultLineWidth = 2
 Default line thickness for new objects of this class. More...
 
static bool DefaultLineColorIsScaled = false
 Default value of the flag indicating whether lines are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used. More...
 
static ColorScale DefaultLineColorScale = ColorScale.CreateGray(0,1)
 Default line color scale for new plot objects of this class. More...
 
static color DefaultLineColor = new color(0, 0, 1)
 Default line color for new objects of this class. More...
 
static bool DefaultSurfacesVisible = true
 Default value of the flag indicating whether surfaces will be shown. More...
 
static bool DefaultSurfaceColorIsScaled = true
 Default value of the flag indicated whether surfaces are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used. More...
 
static ColorScale DefaultSurfaceColorScale
 Default surface color scale for new plot objects of this class. More...
 
static color DefaultSurfaceColor = new color(0.5, 0.75, 1.0)
 Default surface color for new objects of this class. More...
 
static bool DefaultPointsVisible = true
 Default value of the flag indicating whether points will be shown. More...
 
static double DefaultPointSize = 2
 Default point size for new objects of this class. More...
 
static bool DefaultPointColorIsScaled = false
 Default value of the flag indicated whether points are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used. More...
 
static ColorScale DefaultPointColorScale = ColorScale.Create(-1, 1, new color(0.1, 0, 0.3), new color(1, 0.5, 0))
 Default point color scale for new plot objects of this class. More...
 
static color DefaultPointColor = new color(1, 0, 0)
 Default point color for new objects of this class. More...
 

Protected Member Functions

virtual void InvalidateSettingDependencies ()
 Invalidates things that are dependent on any settings. More...
 
void AddLineCell (double x1, double y1, double z1, double x2, double y2, double z2)
 Adds a line with specified endpoint coordinates to the array of line cells. More...
 
void AddSurfaceCell (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
 Adds a triangular surface cell with specified vertex coordinates to the array of surface cells. More...
 
void AddSurfaceCell (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4)
 Adds a quadrilateral surface cell with specified vertex coordinates to the array of quadrilateral cells. More...
 
void AddPointCell (double x1, double y1, double z1)
 Adds a triangular point cell with specified point coordinates to the array of point cells. A triangular cell is added with coordinates of all three vertices being the same. More...
 
- Protected Member Functions inherited from IG.Gr3d.VtkPlotBase
virtual void Dispose (bool disposing)
 Does the job of freeing resources. More...
 

Properties

bool LinesVisible [get, set]
 Whether line objects are shown in plots or not. More...
 
double LineWidth [get, set]
 Line thickness used in plots. More...
 
bool LineColorIsScaled [get, set]
 Whether a color scale is used for coloring lines (value true) or a fixed color is used (value false). More...
 
ColorScale LineColorScale [get, set]
 Color scale used for plotting lines (when the flag LineColorIsScaled is true, otherwise fixed LineColor is uesd). More...
 
color LineColor [get, set]
 Color used for lines (when the flag LineColorIsScaled is false, otherwise LineColorScale is uesd that depends on values assigned to line endpoints). More...
 
double LineColorOpacity [get, set]
 Opacity of lines. More...
 
bool SurfacesVisible [get, set]
 Whether surface objects are shown in plots or not. More...
 
bool SurfaceColorIsScaled [get, set]
 Whether a color scale is used for coloring surfaces (value true) or a fixed color is used (value false). More...
 
ColorScale SurfaceColorScale [get, set]
 Color scale used for plotting surfaces (when the flag SurfaceColorIsScaled is true, otherwise fixed SurfaceColor is uesd). More...
 
color SurfaceColor [get, set]
 Color used for surfaces (when the flag SurfaceColorIsScaled is false, otherwise SurfaceColorScale is uesd that depends on values assigned to surface endpoints). More...
 
double SurfaceColorOpacity [get, set]
 Opacity of surfaces. More...
 
bool PointsVisible [get, set]
 Whether point objects are shown in plots or not. More...
 
double PointSize [get, set]
 Point size used in plots. More...
 
bool PointColorIsScaled [get, set]
 Whether a color scale is used for coloring points (value true) or a fixed color is used (value false). More...
 
ColorScale PointColorScale [get, set]
 Color scale used for plotting points (when the flag PointColorIsScaled is true, otherwise fixed PointColor is uesd). More...
 
color PointColor [get, set]
 Color used for points (when the flag PointColorIsScaled is false, otherwise PointColorScale is uesd that depends on values assigned to points). More...
 
double PointColorOpacity [get, set]
 Opacity of points. More...
 
- Properties inherited from IG.Gr3d.VtkPlotBase
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. More...
 
int OutputLevel [get, set]
 Level of output to the console for the current object. The defalult output level for newly created object is specified by VtkPlotter.DefaultOutputLevel. More...
 
StopWatch1 Timer [get]
 Stopwatch that can be used to measure the time efficiency of actions. More...
 
color BackGround [get, set]
 Sets background color of the plotter that is used by the current plot object. More...
 
VtkPlotter Plotter [get, set]
 VTK plotter that is used for rendering graphics produeced by the current plotting class, on a VTK rendering window. More...
 
List< vtkActor > Actors [get, set]
 List of actors contained on the current class. More...
 
List< vtkAlgorithm > algorithms [get, set]
 List of algorithms contained on the current class. More...
 
List< vtkMapper > Mappers [get, set]
 List of mappers contained on the current class. More...
 
List< vtkDataSet > DataSets [get, set]
 List of datasets contained on the current class. More...
 
bool AutoUpdateBoundsCoordinates [get, set]
 Determines whether bounds on plotted geometry are automatically updated when new primitives are added. More...
 
BoundingBox3d BoundsCoordinates [get, protected set]
 Bounds on coordinates of points that define the plots. everything on the plot should fit in these bounds. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Private Member Functions

int AddLinePoint (double x, double y, double z)
 Adds a point with specified coordinates to the array of line endpoints and returns its index. Current point index is increased by one. More...
 
int AddSurfacePoint (double x, double y, double z)
 Adds a point with specified coordinates to the array of surface cell vertices and returns its index. Current point index is increased by one. More...
 
int AddPointPoint (double x, double y, double z)
 Adds a point with specified coordinates to the array of surface cell vertices and returns its index. Current point index is increased by one. More...
 

Private Attributes

bool _linesVisible = DefaultLinesVisible
 
double _lineWidth = DefaultLineWidth
 
bool _lineColorIsScaled = DefaultLineColorIsScaled
 
ColorScale _lineColorScale = DefaultLineColorScale
 
color _lineColor = DefaultLineColor
 
double _lineColorOpacity = -1
 
bool _surfacesVisible = DefaultSurfacesVisible
 
bool _surfaceColorIsScaled = DefaultSurfaceColorIsScaled
 
ColorScale _surfaceColorScale = DefaultSurfaceColorScale
 
color _surfaceColor = DefaultSurfaceColor
 
double _surfaceColorOpacity = -1
 
bool _pointsVisible = DefaultPointsVisible
 
double _pointSize = DefaultPointSize
 
bool _pointColorIsScaled = DefaultPointColorIsScaled
 
ColorScale _pointColorScale = DefaultPointColorScale
 
color _pointColor = DefaultPointColor
 
int _linePointIndex
 
vtkPoints _linePoints
 
vtkCellArray _lineCells
 
int _surfacePointIndex
 
vtkPoints _surfacePoints
 
vtkCellArray _surfaceCells
 
int _pointPointIndex
 
vtkPoints _pointPoints
 
vtkCellArray _pointCells
 

Additional Inherited Members

- Static Public Member Functions inherited from IG.Gr3d.VtkPlotBase
static void ExampleCustomSurfaceComparison ()
 Custom comparison of two surfaces in 3D defined as functions of two variables. More...
 
static void ExampleCurvePlotLissajous ()
 Example curve plot. Plots a curve whose projection on the XY plane is a Lissajous curve, but which also oscillates in the Z direction. More...
 
static void ExampleCurvePlotLissajous (int a, int b)
 Example curve plot. Plots a curve whose projection on the XY plane is a Lissajous curve, but which also oscillates in the Z direction. More...
 
static void ExampleCurvePlotTorusKnot ()
 Example curve plot. Plots a curve whose projection on the XY plane is a Lissajous curve, but which also oscillates in the Z direction. More...
 
static void ExampleCurvePlotTorusKnot (int p, int q)
 Example curve plot. Plots a two-parameters torus knot. Parameters must be coprimes. More...
 
static void ExamplePlotterDecoration ()
 Example that demonstrates how various plotter decorations can be set up. More...
 
static void ExampleSurfacePlot ()
 Example of surface plots. More...
 
static void ExampleSurfacePlotScaled ()
 Example of surface plots where graph is scaled automaticallly. More...
 
static void ExampleSurfacePlotScaled (int numX, int numY)
 Example of surface plots where graph is scaled automatically. More...
 
static void ExampleSurfacePlotManualScaled ()
 Example of surface plots where mesh is generated manually. Also shows scaling of graph. More...
 
static void ExampleSurfacePlotManualScaled (int numX, int numY)
 Example of surface plots where mesh is generated manually. Also shows scaling of graph. More...
 
static void ExampleContourPlot ()
 Examples of contour plots. More...
 
static void CopyBounds (Func3d2dExamples.ParametricSurface func, VtkSurfacePlot plot)
 Copies bounds on parameters from the function definition of parametric surface to a plot object for plotting surfaces. More...
 
static void ExampleParametricSurfacePlots ()
 Examples of various parametric surface plots. More...
 
- Protected Attributes inherited from IG.Gr3d.VtkPlotBase
List< vtkActor > _actors
 
List< vtkAlgorithm > _algorithms
 
List< vtkMapper > _mappers
 
List< vtkDataSet > _dataSets
 
bool _autoUpdateBoundsCoordinates = true
 

Detailed Description

Contains basic settings for various surface and contour plots.

This is used as base class for surface and contour plots.

Beside its basic function, the class also contains methods for plotting basic graphic primitives (points, lines, triangular and quadrilateral surface or wireframe patches, etc.).

Plotting of basic primitives is added on this class for convenience, such that minor custom graphics can simply be added on surface plots and contour plots. Aleernative and somewhat cleaner approach would be to include methods for plotting simple primitives in a derived class, but it is considered that letting surface and contour plot classes access this functionality is beneficial.

$A Igor xx Oct11;

Constructor & Destructor Documentation

IG.Gr3d.VtkSurfacePlotBase.VtkSurfacePlotBase ( VtkPlotter  plotter)
inline

Constructor. Just calls base constructor with the same name.

Parameters
plotterVTK plotter that is used for rendering graphics produeced by the current plotting class.

Member Function Documentation

virtual void IG.Gr3d.VtkSurfacePlotBase.InvalidateSettingDependencies ( )
inlineprotectedvirtual

Invalidates things that are dependent on any settings.

This function should be called anywhere seddings are changed.

void IG.Gr3d.VtkSurfacePlotBase.CreateCustomPlot ( )
inline

Updates custom plots that have been accumulates since the last update (or since construction of the current plot object).

For all primitives that have been added since the last update, actors are created and added to the plot. In this way, the current plotting settings (such as surface colors, line thickness, etc.) will take effect, and for primitives that are eventually added later, settings valid at that time will apply.

Referenced by IG.Gr3d.VtkPlotBase.ExampleSurfacePlot().

void IG.Gr3d.VtkSurfacePlotBase.CreateCustomPlotAndShow ( )
inline
int IG.Gr3d.VtkSurfacePlotBase.AddLinePoint ( double  x,
double  y,
double  z 
)
inlineprivate

Adds a point with specified coordinates to the array of line endpoints and returns its index. Current point index is increased by one.

Parameters
xX coordinate of the added point.
yY coordinate of the added point.
zZ coordinate of the added point.
Returns
Index of the added pont on the list of points, which should be used when addressing the point when assembling line cells.
void IG.Gr3d.VtkSurfacePlotBase.AddLineCell ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)
inlineprotected

Adds a line with specified endpoint coordinates to the array of line cells.

Parameters
x1X coordinate of the first point.
y1Y coordinate of the first point.
z1Z coordinate of the first point.
x2X coordinate of the second point.
y2Y coordinate of the second point.
z2Z coordinate of the second point.
int IG.Gr3d.VtkSurfacePlotBase.AddSurfacePoint ( double  x,
double  y,
double  z 
)
inlineprivate

Adds a point with specified coordinates to the array of surface cell vertices and returns its index. Current point index is increased by one.

Parameters
xX coordinate of the added point.
yY coordinate of the added point.
zZ coordinate of the added point.
Returns
Index of the added pont on the array of points, which should be used when addressing the point when assembling surface cells.
void IG.Gr3d.VtkSurfacePlotBase.AddSurfaceCell ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3 
)
inlineprotected

Adds a triangular surface cell with specified vertex coordinates to the array of surface cells.

Parameters
x1X coordinate of the first point.
y1Y coordinate of the first point.
z1Z coordinate of the first point.
x2X coordinate of the second point.
y2Y coordinate of the second point.
z2Z coordinate of the second point.
x3X coordinate of the third point.
y3Y coordinate of the third point.
z3Z coordinate of the third point.
void IG.Gr3d.VtkSurfacePlotBase.AddSurfaceCell ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3,
double  x4,
double  y4,
double  z4 
)
inlineprotected

Adds a quadrilateral surface cell with specified vertex coordinates to the array of quadrilateral cells.

Parameters
x1X coordinate of the first point.
y1Y coordinate of the first point.
z1Z coordinate of the first point.
x2X coordinate of the second point.
y2Y coordinate of the second point.
z2Z coordinate of the second point.
x3X coordinate of the third point.
y3Y coordinate of the third point.
z3Z coordinate of the third point.
x4X coordinate of the third point.
y4Y coordinate of the third point.
z4Z coordinate of the third point.
int IG.Gr3d.VtkSurfacePlotBase.AddPointPoint ( double  x,
double  y,
double  z 
)
inlineprivate

Adds a point with specified coordinates to the array of surface cell vertices and returns its index. Current point index is increased by one.

Parameters
xX coordinate of the added point.
yY coordinate of the added point.
zZ coordinate of the added point.
Returns
Index of the added pont on the array of points, which should be used when addressing the point when assembling surface cells.
void IG.Gr3d.VtkSurfacePlotBase.AddPointCell ( double  x1,
double  y1,
double  z1 
)
inlineprotected

Adds a triangular point cell with specified point coordinates to the array of point cells. A triangular cell is added with coordinates of all three vertices being the same.

Parameters
x1X coordinate of the point.
y1Y coordinate of the point.
z1Z coordinate of the point.
void IG.Gr3d.VtkSurfacePlotBase.AddPoint ( double  x,
double  y,
double  z 
)
inline

Adds a point with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called.

Current settings are used to define appearance of the added primitive.

Parameters
xX coordinate of the point.
yY coordinate of the point.
zZ coordinate of the point.

Referenced by IG.Gr3d.VtkPlotBase.ExampleSurfacePlot().

void IG.Gr3d.VtkSurfacePlotBase.AddPoint ( vec3  p)
inline

Adds a point with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called.

Current settings are used to define appearance of the added primitive.

Parameters
p3D vector of point coordinates.

References IG.Num.vec3.x, IG.Num.vec3.y, and IG.Num.vec3.z.

void IG.Gr3d.VtkSurfacePlotBase.AddPoints ( params vec3[]  points)
inline

Adds a set of points with specified coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called.

Current settings are used to define appearance of the added primitives.

Parameters
points3D vectors of coordinates of the individual points.
void IG.Gr3d.VtkSurfacePlotBase.AddLine ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)
inline

Adds a line with specified endpoint coordinates to the set of graphic primitives that will be plotted when CreateCustomPlot is called.

Current settings are used to define appearance of the added primitive.

Parameters
x1X coordinate of the first endpoint.
y1Y coordinate of the first endpoint.
z1Z coordinate of the first endpoint.
x2X coordinate of the second endpoint.
y2Y coordinate of the second endpoint.
z2Z coordinate of the second endpoint.

Referenced by IG.Gr3d.VtkPlotBase.ExampleSurfacePlot().

void IG.Gr3d.VtkSurfacePlotBase.AddLine ( vec3  p1,
vec3  p2 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddLines ( params vec3[]  points)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddTriangle ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddTriangle ( vec3  p1,
vec3  p2,
vec3  p3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddTriangularStrip ( params vec3[]  points)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddQuadrilateral ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3,
double  x4,
double  y4,
double  z4 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddQuadrilateral ( vec3  p1,
vec3  p2,
vec3  p3,
vec3  p4 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddFilledTriangle ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddFilledTriangle ( vec3  p1,
vec3  p2,
vec3  p3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddFilledTriangularStrip ( params vec3[]  points)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddBorderedTriangle ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddBorderedTriangle ( vec3  p1,
vec3  p2,
vec3  p3 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddBorderedTriangularStrip ( params vec3[]  points)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddFilledQuadrilateral ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3,
double  x4,
double  y4,
double  z4 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddFilledQuadrilateral ( vec3  p1,
vec3  p2,
vec3  p3,
vec3  p4 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddBorderedQuadrilateral ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
double  x3,
double  y3,
double  z3,
double  x4,
double  y4,
double  z4 
)
inline
void IG.Gr3d.VtkSurfacePlotBase.AddBorderedQuadrilateral ( vec3  p1,
vec3  p2,
vec3  p3,
vec3  p4 
)
inline

Member Data Documentation

string IG.Gr3d.VtkSurfacePlotBase.DefaultValuesFieldName = "values"
static

Default name of the field that contains node values for plotted grids.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultLinesVisible = true
static

Default value of the flag indicating whether lines and contours will be shown.

double IG.Gr3d.VtkSurfacePlotBase.DefaultLineWidth = 2
static

Default line thickness for new objects of this class.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultLineColorIsScaled = false
static

Default value of the flag indicating whether lines are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used.

ColorScale IG.Gr3d.VtkSurfacePlotBase.DefaultLineColorScale = ColorScale.CreateGray(0,1)
static

Default line color scale for new plot objects of this class.

color IG.Gr3d.VtkSurfacePlotBase.DefaultLineColor = new color(0, 0, 1)
static

Default line color for new objects of this class.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultSurfacesVisible = true
static

Default value of the flag indicating whether surfaces will be shown.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultSurfaceColorIsScaled = true
static

Default value of the flag indicated whether surfaces are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used.

ColorScale IG.Gr3d.VtkSurfacePlotBase.DefaultSurfaceColorScale
static
Initial value:
= ColorScale.Create(0, 1,
System.Drawing.Color.DarkBlue, System.Drawing.Color.Green, System.Drawing.Color.Red, System.Drawing.Color.Yellow)

Default surface color scale for new plot objects of this class.

color IG.Gr3d.VtkSurfacePlotBase.DefaultSurfaceColor = new color(0.5, 0.75, 1.0)
static

Default surface color for new objects of this class.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultPointsVisible = true
static

Default value of the flag indicating whether points will be shown.

double IG.Gr3d.VtkSurfacePlotBase.DefaultPointSize = 2
static

Default point size for new objects of this class.

bool IG.Gr3d.VtkSurfacePlotBase.DefaultPointColorIsScaled = false
static

Default value of the flag indicated whether points are plotted in color scale, for new plot objects of this class. Value false means that constant color is used, true means that color scale is used.

ColorScale IG.Gr3d.VtkSurfacePlotBase.DefaultPointColorScale = ColorScale.Create(-1, 1, new color(0.1, 0, 0.3), new color(1, 0.5, 0))
static

Default point color scale for new plot objects of this class.

color IG.Gr3d.VtkSurfacePlotBase.DefaultPointColor = new color(1, 0, 0)
static

Default point color for new objects of this class.

bool IG.Gr3d.VtkSurfacePlotBase._linesVisible = DefaultLinesVisible
private
double IG.Gr3d.VtkSurfacePlotBase._lineWidth = DefaultLineWidth
private
bool IG.Gr3d.VtkSurfacePlotBase._lineColorIsScaled = DefaultLineColorIsScaled
private
ColorScale IG.Gr3d.VtkSurfacePlotBase._lineColorScale = DefaultLineColorScale
private
color IG.Gr3d.VtkSurfacePlotBase._lineColor = DefaultLineColor
private
double IG.Gr3d.VtkSurfacePlotBase._lineColorOpacity = -1
private
bool IG.Gr3d.VtkSurfacePlotBase._surfacesVisible = DefaultSurfacesVisible
private
bool IG.Gr3d.VtkSurfacePlotBase._surfaceColorIsScaled = DefaultSurfaceColorIsScaled
private
ColorScale IG.Gr3d.VtkSurfacePlotBase._surfaceColorScale = DefaultSurfaceColorScale
private
color IG.Gr3d.VtkSurfacePlotBase._surfaceColor = DefaultSurfaceColor
private
double IG.Gr3d.VtkSurfacePlotBase._surfaceColorOpacity = -1
private
bool IG.Gr3d.VtkSurfacePlotBase._pointsVisible = DefaultPointsVisible
private
double IG.Gr3d.VtkSurfacePlotBase._pointSize = DefaultPointSize
private
bool IG.Gr3d.VtkSurfacePlotBase._pointColorIsScaled = DefaultPointColorIsScaled
private
ColorScale IG.Gr3d.VtkSurfacePlotBase._pointColorScale = DefaultPointColorScale
private
color IG.Gr3d.VtkSurfacePlotBase._pointColor = DefaultPointColor
private
double IG.Gr3d.VtkSurfacePlotBase._pointColorOpacity = 1
int IG.Gr3d.VtkSurfacePlotBase._linePointIndex
private
vtkPoints IG.Gr3d.VtkSurfacePlotBase._linePoints
private
vtkCellArray IG.Gr3d.VtkSurfacePlotBase._lineCells
private
int IG.Gr3d.VtkSurfacePlotBase._surfacePointIndex
private
vtkPoints IG.Gr3d.VtkSurfacePlotBase._surfacePoints
private
vtkCellArray IG.Gr3d.VtkSurfacePlotBase._surfaceCells
private
int IG.Gr3d.VtkSurfacePlotBase._pointPointIndex
private
vtkPoints IG.Gr3d.VtkSurfacePlotBase._pointPoints
private
vtkCellArray IG.Gr3d.VtkSurfacePlotBase._pointCells
private

Property Documentation

ColorScale IG.Gr3d.VtkSurfacePlotBase.LineColorScale
getset
double IG.Gr3d.VtkSurfacePlotBase.LineColorOpacity
getset

Opacity of lines.

If this property is not set separately then the opacity of LineColor is returned by getter.

Once this property is set, even when setitng a new value for LineColor property, the opacity on this property will be overridden by the value that has been set specially.

This property is unset by setting it to a negative value.

ColorScale IG.Gr3d.VtkSurfacePlotBase.SurfaceColorScale
getset

Color scale used for plotting surfaces (when the flag SurfaceColorIsScaled is true, otherwise fixed SurfaceColor is uesd).

Referenced by IG.Forms.VectorFunctionPlotter2d.ApplySurfacePlotSettingsDefault(), and IG.Gr3d.VtkPlotBase.ExampleCustomSurfaceComparison().

bool IG.Gr3d.VtkSurfacePlotBase.PointColorIsScaled
getset

Whether a color scale is used for coloring points (value true) or a fixed color is used (value false).

Referenced by IG.Gr3d.VtkPlotBase.ExampleCurvePlotLissajous(), IG.Gr3d.VtkPlotBase.ExampleCurvePlotTorusKnot(), and IG.Gr3d.VtkControlBase.VtkControlBase_LoadVtkGraphics().

ColorScale IG.Gr3d.VtkSurfacePlotBase.PointColorScale
getset
color IG.Gr3d.VtkSurfacePlotBase.PointColor
getset
double IG.Gr3d.VtkSurfacePlotBase.PointColorOpacity
getset

Opacity of points.

If this property is not set separately then the opacity of PointColor is returned by getter.

Once this property is set, even when setitng a new value for PointColor property, the opacity on that property will be overridden by the value that has been set specially.

This property is unset by setting it to a negative value.


The documentation for this class was generated from the following file: