ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Private Member Functions | List of all members
Kitware.VTK.vtkMath Class Reference

vtkMath - performs common math operations More...

Inheritance diagram for Kitware.VTK.vtkMath:
[legend]
Collaboration diagram for Kitware.VTK.vtkMath:
[legend]

Public Member Functions

 vtkMath (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkMath ()
 Undocumented Block
override int IsA (string type)
 Undocumented Block
new vtkMath NewInstance ()
 Undocumented Block
- Public Member Functions inherited from Kitware.VTK.vtkObject
 vtkObject (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkObject ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
uint AddObserver (uint arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
uint AddObserver (string arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
virtual void DebugOff ()
 Turn debugging output off.
virtual void DebugOn ()
 Turn debugging output on.
vtkCommand GetCommand (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
byte GetDebug ()
 Get the value of the debug flag.
virtual uint GetMTime ()
 Return this object's modified time.
int HasObserver (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (uint arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (string arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
virtual void Modified ()
 Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. The modification time is a unique monotonically increasing unsigned long integer.
void RemoveAllObservers ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObserver (vtkCommand arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObserver (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void SetDebug (byte debugFlag)
 Set the value of the debug flag. A non-zero value turns debugging on.
override string ToString ()
 Returns the result of calling vtkObject::Print as a C# string.
delegate void vtkObjectEventHandler (vtkObject sender, vtkObjectEventArgs e)
 Generic signature for all vtkObject events.
void RemoveAllHandlersForAllEvents ()
 Call RemoveAllHandlers on each non-null vtkObjectEventRelay. TODO: This method needs to get called by the generated Dispose. Make that happen...
- Public Member Functions inherited from Kitware.VTK.vtkObjectBase
 vtkObjectBase (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkObjectBase ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual void Register (vtkObjectBase o)
 Increase the reference count (mark as used by another object).
virtual void FastDelete ()
 Delete a reference to this object. This version will not invoke garbage collection and can potentially leak the object if it is part of a reference loop. Use this method only when it is known that the object has another reference and would not be collected if a full garbage collection check were done.
string GetClassName ()
 Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeMacro found in vtkSetGet.h.
int GetReferenceCount ()
 Return the current reference count of this object.
void SetReferenceCount (int arg0)
 Sets the reference count. (This is very dangerous, use with care.)

Static Public Member Functions

static new vtkMath New ()
 Undocumented Block
static void Add (IntPtr a, IntPtr b, IntPtr c)
 Addition of two 3-vectors (float version). Result is stored in c.
static int AreBoundsInitialized (IntPtr bounds)
 Are the bounds initialized?
static IntPtr BeginCombination (int m, int n)
 Start iterating over "m choose n" objects. This function returns an array of n integers, each from 0 to m-1. These integers represent the n items chosen from the set [0,m[.
static long Binomial (int m, int n)
 The number of combinations of n objects from a pool of m objects (m>n). This is commonly known as "m choose n" and sometimes denoted $_mC_n$ or $\left(\begin{array}{c}m \\ n\end{array}\right)$.
static int BoundsIsWithinOtherBounds (IntPtr bounds1, IntPtr bounds2, IntPtr delta)
 Return true if first 3D bounds is within the second 3D bounds Bounds is x-min, x-max, y-min, y-max, z-min, z-max Delta is the error margin along each axis (usually a small number)
static int Ceil (double x)
 


static double ClampAndNormalizeValue (double value, IntPtr range)
 


static void ClampValue (IntPtr value, IntPtr range)
 


static void ClampValue (double value, IntPtr range, IntPtr clamped_value)
 


static void ClampValues (IntPtr values, int nb_values, IntPtr range)
 Clamp some values against a range The method without 'clamped_values' will perform in-place clamping.
static void ClampValues (IntPtr values, int nb_values, IntPtr range, IntPtr clamped_values)
 Clamp some values against a range The method without 'clamped_values' will perform in-place clamping.
static void Cross (IntPtr x, IntPtr y, IntPtr z)
 

Cross product of two 3-vectors. Result (a x b) is stored in z[3].
static float DegreesFromRadians (float x)
 


static double DegreesFromRadians (double x)
 


static float Determinant2x2 (IntPtr c1, IntPtr c2)
 Compute determinant of 2x2 matrix. Two columns of matrix are input.
static double Determinant2x2 (double a, double b, double c, double d)
 Calculate the determinant of a 2x2 matrix: | a b | | c d |
static float Determinant3x3 (IntPtr c1, IntPtr c2, IntPtr c3)
 


static double Determinant3x3 (double a1, double a2, double a3, double b1, double b2, double b3, double c1, double c2, double c3)
 


static float Distance2BetweenPoints (IntPtr x, IntPtr y)
 


static float Dot (IntPtr x, IntPtr y)
 Dot product of two 3-vectors (float version).
static float Dot2D (IntPtr x, IntPtr y)
 Dot product of two 2-vectors.
static double DoublePi ()
 A mathematical constant (double-precision version). This version is 3.1415926535897932384626.
static double DoubleTwoPi ()
 A mathematical constant (double-precision version). This version is 6.283185307179586.
static int ExtentIsWithinOtherExtent (IntPtr extent1, IntPtr extent2)
 Return true if first 3D extent is within second 3D extent Extent is x-min, x-max, y-min, y-max, z-min, z-max
static long Factorial (int N)
 


static int Floor (double x)
 


static void FreeCombination (IntPtr combination)
 Free the "iterator" array created by vtkMath::BeginCombination.
static double Gaussian ()
 Generate pseudo-random numbers distributed according to the standard normal distribution.
static double Gaussian (double mean, double std)
 Generate pseudo-random numbers distributed according to the Gaussian distribution with mean mean and standard deviation std.
static double GaussianAmplitude (double variance, double distanceFromMean)
 Compute the amplitude of a Gaussian function with mean=0 and specified variance. That is, 1./(sqrt(2 Pi * variance)) * exp(-distanceFromMean^2/(2.*variance)).
static double GaussianAmplitude (double mean, double variance, double position)
 Compute the amplitude of a Gaussian function with specified mean and variance. That is, 1./(sqrt(2 Pi * variance)) * exp(-(position - mean)^2/(2.*variance)).
static double GaussianWeight (double variance, double distanceFromMean)
 Compute the amplitude of an unnormalized Gaussian function with mean=0 and specified variance. That is, exp(-distanceFromMean^2/(2.*variance)). When distanceFromMean = 0, this function returns 1.
static double GaussianWeight (double mean, double variance, double position)
 Compute the amplitude of an unnormalized Gaussian function with specified mean and variance. That is, exp(-(position - mean)^2/(2.*variance)). When the distance from 'position' to 'mean' is 0, this function returns 1.
static int GetAdjustedScalarRange (vtkDataArray array, int comp, IntPtr range)
 Get a vtkDataArray's scalar range for a given component. If the vtkDataArray's data type is unsigned char (VTK_UNSIGNED_CHAR) the range is adjusted to the whole data type range [0, 255.0]. Same goes for unsigned short (VTK_UNSIGNED_SHORT) but the upper bound is also adjusted down to 4095.0 if was between ]255, 4095.0]. Return 1 on success, 0 otherwise.
static int GetScalarTypeFittingRange (double range_min, double range_max, double scale, double shift)
 Return the scalar type that is most likely to have enough precision to store a given range of data once it has been scaled and shifted (i.e. [range_min * scale + shift, range_max * scale + shift]. If any one of the parameters is not an integer number (decimal part != 0), the search will default to float types only (float or double) Return -1 on error or no scalar type found.
static int GetSeed ()
 Return the current seed used by the random number generator.
static void HSVToRGB (IntPtr hsv, IntPtr rgb)
 Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.
static void HSVToRGB (float h, float s, float v, IntPtr r, IntPtr g, IntPtr b)
 Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.
static double[] HSVToRGB (IntPtr hsv)
 Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.
static double[] HSVToRGB (double h, double s, double v)
 Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.
static void HSVToRGB (double h, double s, double v, IntPtr r, IntPtr g, IntPtr b)
 Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.
static double Inf ()
 Special IEEE-754 number used to represent positive infinity.
static int IsInf (double x)
 Test if a number is equal to the special floating point value infinity.
static int IsNan (double x)
 Test if a number is equal to the special floating point value Not-A-Number (Nan).
static new int IsTypeOf (string type)
 Undocumented Block
static void LabToRGB (IntPtr lab, IntPtr rgb)
 Convert color from the CIE-L*ab system to RGB.
static void LabToRGB (double L, double a, double b, IntPtr red, IntPtr green, IntPtr blue)
 Convert color from the CIE-L*ab system to RGB.
static IntPtr LabToRGB (IntPtr lab)
 Convert color from the CIE-L*ab system to RGB.
static void LabToXYZ (IntPtr lab, IntPtr xyz)
 Convert color from the CIE-L*ab system to CIE XYZ.
static void LabToXYZ (double L, double a, double b, IntPtr x, IntPtr y, IntPtr z)
 Convert color from the CIE-L*ab system to CIE XYZ.
static IntPtr LabToXYZ (IntPtr lab)
 Convert color from the CIE-L*ab system to CIE XYZ.
static void MultiplyScalar (IntPtr a, float s)
 Multiplies a 3-vector by a scalar (float version). This modifies the input 3-vector.
static void MultiplyScalar (IntPtr a, double s)
 Multiplies a 3-vector by a scalar (double version). This modifies the input 3-vector.
static void MultiplyScalar2D (IntPtr a, float s)
 Multiplies a 2-vector by a scalar (float version). This modifies the input 2-vector.
static void MultiplyScalar2D (IntPtr a, double s)
 Multiplies a 2-vector by a scalar (double version). This modifies the input 2-vector.
static double Nan ()
 Special IEEE-754 number used to represent Not-A-Number (Nan).
static double NegInf ()
 Special IEEE-754 number used to represent negative infinity.
static int NextCombination (int m, int n, IntPtr combination)
 Given m, n, and a valid combination of n integers in the range [0,m[, this function alters the integers into the next combination in a sequence of all combinations of n items from a pool of m.
static float Norm (IntPtr x, int n)
 Compute the norm of n-vector. x is the vector, n is its length.
static float Norm (IntPtr x)
 Compute the norm of 3-vector.
static float Norm2D (IntPtr x)
 Compute the norm of a 2-vector.
static float Normalize (IntPtr x)
 


static float Normalize2D (IntPtr x)
 


static void Perpendiculars (IntPtr x, IntPtr y, IntPtr z, double theta)
 Given a unit vector x, find two unit vectors y and z such that x cross y = z (i.e. the vectors are perpendicular to each other). There is an infinite number of such vectors, specify an angle theta to choose one set. If you want only one perpendicular vector, specify NULL for z.
static float Pi ()
 A mathematical constant. This version is 3.14159265358979f.
static int PointIsWithinBounds (IntPtr point, IntPtr bounds, IntPtr delta)
 Return true if point is within the given 3D bounds Bounds is x-min, x-max, y-min, y-max, z-min, z-max Delta is the error margin along each axis (usually a small number)
static bool ProjectVector (IntPtr a, IntPtr b, IntPtr projection)
 Compute the projection of vector a on vector b and return it in projection[3]. If b is a zero vector, the function returns false and 'projection' is invalid. Otherwise, it returns true.
static bool ProjectVector2D (IntPtr a, IntPtr b, IntPtr projection)
 Compute the projection of 2D vector 'a' on 2D vector 'b' and returns the result in projection[2]. If b is a zero vector, the function returns false and 'projection' is invalid. Otherwise, it returns true.
static void RGBToHSV (IntPtr rgb, IntPtr hsv)
 Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.
static void RGBToHSV (float r, float g, float b, IntPtr h, IntPtr s, IntPtr v)
 Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.
static double[] RGBToHSV (IntPtr rgb)
 Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.
static double[] RGBToHSV (double r, double g, double b)
 Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.
static void RGBToHSV (double r, double g, double b, IntPtr h, IntPtr s, IntPtr v)
 Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.
static void RGBToLab (IntPtr rgb, IntPtr lab)
 Convert color from the RGB system to CIE-L*ab.
static void RGBToLab (double red, double green, double blue, IntPtr L, IntPtr a, IntPtr b)
 Convert color from the RGB system to CIE-L*ab.
static IntPtr RGBToLab (IntPtr rgb)
 Convert color from the RGB system to CIE-L*ab.
static void RGBToXYZ (IntPtr rgb, IntPtr xyz)
 Convert color from the RGB system to CIE XYZ.
static void RGBToXYZ (double r, double g, double b, IntPtr x, IntPtr y, IntPtr z)
 Convert color from the RGB system to CIE XYZ.
static IntPtr RGBToXYZ (IntPtr rgb)
 Convert color from the RGB system to CIE XYZ.
static float RadiansFromDegrees (float x)
 


static double RadiansFromDegrees (double x)
 


static double Random ()
 Generate pseudo-random numbers distributed according to the uniform distribution between 0.0 and 1.0. This is used to provide portability across different systems.
static double Random (double min, double max)
 Generate pseudo-random numbers distributed according to the uniform distribution between min and max.
static void RandomSeed (int s)
 Initialize seed value. NOTE: Random() has the bad property that the first random number returned after RandomSeed() is called is proportional to the seed value! To help solve this, call RandomSeed() a few times inside seed. This doesn't ruin the repeatability of Random().
static int Round (float f)
 Rounds a float to the nearest integer.
static int Round (double f)
 Rounds a float to the nearest integer.
static new vtkMath SafeDownCast (vtkObjectBase o)
 Undocumented Block
static double Solve3PointCircle (IntPtr p1, IntPtr p2, IntPtr p3, IntPtr center)
 In Euclidean space, there is a unique circle passing through any given three non-collinear points P1, P2, and P3. Using Cartesian coordinates to represent these points as spatial vectors, it is possible to use the dot product and cross product to calculate the radius and center of the circle. See: http://en.wikipedia.org/wiki/Circumcircle and more specifically the section Barycentric coordinates from cross- and dot-products
static void Subtract (IntPtr a, IntPtr b, IntPtr c)
 Subtraction of two 3-vectors (float version). Result is stored in c according to c = a - b.
static void UninitializeBounds (IntPtr bounds)
 Set the bounds to an uninitialized state
static void XYZToLab (IntPtr xyz, IntPtr lab)
 Convert Color from the CIE XYZ system to CIE-L*ab.
static void XYZToLab (double x, double y, double z, IntPtr L, IntPtr a, IntPtr b)
 Convert Color from the CIE XYZ system to CIE-L*ab.
static IntPtr XYZToLab (IntPtr xyz)
 Convert Color from the CIE XYZ system to CIE-L*ab.
static void XYZToRGB (IntPtr xyz, IntPtr rgb)
 Convert color from the CIE XYZ system to RGB.
static void XYZToRGB (double x, double y, double z, IntPtr r, IntPtr g, IntPtr b)
 Convert color from the CIE XYZ system to RGB.
static IntPtr XYZToRGB (IntPtr xyz)
 Convert color from the CIE XYZ system to RGB.
- Static Public Member Functions inherited from Kitware.VTK.vtkObject
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. It allows the debugger to break on error.
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkMath"
 Automatically generated type registration mechanics.
- Public Attributes inherited from Kitware.VTK.vtkObject
new const string MRFullTypeName = "Kitware.VTK.vtkObject"
 Automatically generated type registration mechanics.
- Public Attributes inherited from Kitware.VTK.vtkObjectBase
new const string MRFullTypeName = "Kitware.VTK.vtkObjectBase"
 Automatically generated type registration mechanics.
- Public Attributes inherited from Kitware.VTK.WrappedObject
const string vtkChartsEL_dll = "libKitware.VTK.vtkCharts.Unmanaged.so"
 Export layer functions for 'vtkCharts' are exported from the DLL named by the value of this variable.
const string vtkCommonEL_dll = "libKitware.VTK.vtkCommon.Unmanaged.so"
 Export layer functions for 'vtkCommon' are exported from the DLL named by the value of this variable.
const string vtkFilteringEL_dll = "libKitware.VTK.vtkFiltering.Unmanaged.so"
 Export layer functions for 'vtkFiltering' are exported from the DLL named by the value of this variable.
const string vtkGenericFilteringEL_dll = "libKitware.VTK.vtkGenericFiltering.Unmanaged.so"
 Export layer functions for 'vtkGenericFiltering' are exported from the DLL named by the value of this variable.
const string vtkGeovisEL_dll = "libKitware.VTK.vtkGeovis.Unmanaged.so"
 Export layer functions for 'vtkGeovis' are exported from the DLL named by the value of this variable.
const string vtkGraphicsEL_dll = "libKitware.VTK.vtkGraphics.Unmanaged.so"
 Export layer functions for 'vtkGraphics' are exported from the DLL named by the value of this variable.
const string vtkHybridEL_dll = "libKitware.VTK.vtkHybrid.Unmanaged.so"
 Export layer functions for 'vtkHybrid' are exported from the DLL named by the value of this variable.
const string vtkIOEL_dll = "libKitware.VTK.vtkIO.Unmanaged.so"
 Export layer functions for 'vtkIO' are exported from the DLL named by the value of this variable.
const string vtkImagingEL_dll = "libKitware.VTK.vtkImaging.Unmanaged.so"
 Export layer functions for 'vtkImaging' are exported from the DLL named by the value of this variable.
const string vtkInfovisEL_dll = "libKitware.VTK.vtkInfovis.Unmanaged.so"
 Export layer functions for 'vtkInfovis' are exported from the DLL named by the value of this variable.
const string vtkParallelEL_dll = "libKitware.VTK.vtkParallel.Unmanaged.so"
 Export layer functions for 'vtkParallel' are exported from the DLL named by the value of this variable.
const string vtkRenderingEL_dll = "libKitware.VTK.vtkRendering.Unmanaged.so"
 Export layer functions for 'vtkRendering' are exported from the DLL named by the value of this variable.
const string vtkViewsEL_dll = "libKitware.VTK.vtkViews.Unmanaged.so"
 Export layer functions for 'vtkViews' are exported from the DLL named by the value of this variable.
const string vtkVolumeRenderingEL_dll = "libKitware.VTK.vtkVolumeRendering.Unmanaged.so"
 Export layer functions for 'vtkVolumeRendering' are exported from the DLL named by the value of this variable.
const string vtkWidgetsEL_dll = "libKitware.VTK.vtkWidgets.Unmanaged.so"
 Export layer functions for 'vtkWidgets' are exported from the DLL named by the value of this variable.

Static Public Attributes

static new readonly string MRClassNameKey = "7vtkMath"
 Automatically generated type registration mechanics.
- Static Public Attributes inherited from Kitware.VTK.vtkObject
static new readonly string MRClassNameKey = "9vtkObject"
 Automatically generated type registration mechanics.
- Static Public Attributes inherited from Kitware.VTK.vtkObjectBase
static new readonly string MRClassNameKey = "13vtkObjectBase"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Static Private Member Functions

static vtkMath ()
 Automatically generated type registration mechanics.

Additional Inherited Members

- Properties inherited from Kitware.VTK.vtkObject
Kitware.VTK.vtkObject.vtkObjectEventHandler AbortCheckEvt
 The AbortCheckEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AbortCheckEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler AnimationCueTickEvt
 The AnimationCueTickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AnimationCueTickEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler AnyEvt
 The AnyEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.AnyEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler CharEvt
 The CharEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CharEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ConfigureEvt
 The ConfigureEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConfigureEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ConnectionClosedEvt
 The ConnectionClosedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConnectionClosedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ConnectionCreatedEvt
 The ConnectionCreatedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ConnectionCreatedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler CreateTimerEvt
 The CreateTimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CreateTimerEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler CursorChangedEvt
 The CursorChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.CursorChangedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler DeleteEvt
 The DeleteEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DeleteEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler DestroyTimerEvt
 The DestroyTimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DestroyTimerEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler DisableEvt
 The DisableEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DisableEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler DomainModifiedEvt
 The DomainModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.DomainModifiedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EnableEvt
 The EnableEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EnableEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EndAnimationCueEvt
 The EndAnimationCueEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndAnimationCueEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EndEvt
 The EndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EndInteractionEvt
 The EndInteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndInteractionEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EndPickEvt
 The EndPickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndPickEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EndWindowLevelEvt
 The EndWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EndWindowLevelEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler EnterEvt
 The EnterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.EnterEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ErrorEvt
 The ErrorEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ErrorEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ExecuteInformationEvt
 The ExecuteInformationEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExecuteInformationEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ExitEvt
 The ExitEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExitEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ExposeEvt
 The ExposeEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ExposeEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler InteractionEvt
 The InteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.InteractionEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler KeyPressEvt
 The KeyPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.KeyPressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler KeyReleaseEvt
 The KeyReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.KeyReleaseEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler LeaveEvt
 The LeaveEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeaveEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler LeftButtonPressEvt
 The LeftButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeftButtonPressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler LeftButtonReleaseEvt
 The LeftButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.LeftButtonReleaseEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler MiddleButtonPressEvt
 The MiddleButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MiddleButtonPressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler MiddleButtonReleaseEvt
 The MiddleButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MiddleButtonReleaseEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ModifiedEvt
 The ModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ModifiedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseMoveEvt
 The MouseMoveEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseMoveEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseWheelBackwardEvt
 The MouseWheelBackwardEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseWheelBackwardEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler MouseWheelForwardEvt
 The MouseWheelForwardEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.MouseWheelForwardEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler PickEvt
 The PickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PickEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler PlacePointEvt
 The PlacePointEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PlacePointEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler PlaceWidgetEvt
 The PlaceWidgetEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PlaceWidgetEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ProgressEvt
 The ProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ProgressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler PropertyModifiedEvt
 The PropertyModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.PropertyModifiedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler RegisterEvt
 The RegisterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RegisterEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler RenderEvt
 The RenderEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RenderEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler RenderWindowMessageEvt
 The RenderWindowMessageEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RenderWindowMessageEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetCameraClippingRangeEvt
 The ResetCameraClippingRangeEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetCameraClippingRangeEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetCameraEvt
 The ResetCameraEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetCameraEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler ResetWindowLevelEvt
 The ResetWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.ResetWindowLevelEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler RightButtonPressEvt
 The RightButtonPressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RightButtonPressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler RightButtonReleaseEvt
 The RightButtonReleaseEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.RightButtonReleaseEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler SelectionChangedEvt
 The SelectionChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.SelectionChangedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler SetOutputEvt
 The SetOutputEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.SetOutputEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler StartAnimationCueEvt
 The StartAnimationCueEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartAnimationCueEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler StartEvt
 The StartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler StartInteractionEvt
 The StartInteractionEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartInteractionEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler StartPickEvt
 The StartPickEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartPickEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler StartWindowLevelEvt
 The StartWindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.StartWindowLevelEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler TimerEvt
 The TimerEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.TimerEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler UnRegisterEvt
 The UnRegisterEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UnRegisterEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdateEvt
 The UpdateEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdateEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdateInformationEvt
 The UpdateInformationEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdateInformationEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler UpdatePropertyEvt
 The UpdatePropertyEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.UpdatePropertyEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsEndEvt
 The VolumeMapperComputeGradientsEndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsEndEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsProgressEvt
 The VolumeMapperComputeGradientsProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsProgressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperComputeGradientsStartEvt
 The VolumeMapperComputeGradientsStartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperComputeGradientsStartEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderEndEvt
 The VolumeMapperRenderEndEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderEndEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderProgressEvt
 The VolumeMapperRenderProgressEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderProgressEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler VolumeMapperRenderStartEvt
 The VolumeMapperRenderStartEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.VolumeMapperRenderStartEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WarningEvt
 The WarningEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WarningEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetActivateEvt
 The WidgetActivateEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetActivateEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetModifiedEvt
 The WidgetModifiedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetModifiedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WidgetValueChangedEvt
 The WidgetValueChangedEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WidgetValueChangedEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WindowLevelEvt
 The WindowLevelEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WindowLevelEvent as the eventId parameter.
Kitware.VTK.vtkObject.vtkObjectEventHandler WrongTagEvt
 The WrongTagEvt event is invoked when the sender's InvokeEvent method is called with vtkCommand.EventIds.WrongTagEvent as the eventId parameter.

Detailed Description

vtkMath - performs common math operations

Description vtkMath provides methods to perform common math operations. These include providing constants such as Pi; conversion from degrees to radians; vector operations such as dot and cross products and vector norm; matrix determinant for 2x2 and 3x3 matrices; univariate polynomial solvers; and for random number generation (for backward compatibility only).

vtkMinimalStandardRandomSequence, vtkBoxMuellerRandomSequence

Constructor & Destructor Documentation

static Kitware.VTK.vtkMath.vtkMath ( )
staticprivate

Automatically generated type registration mechanics.

Kitware.VTK.vtkMath.vtkMath ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Kitware.VTK.vtkMath.vtkMath ( )

Undocumented Block

Member Function Documentation

static void Kitware.VTK.vtkMath.Add ( IntPtr  a,
IntPtr  b,
IntPtr  c 
)
static

Addition of two 3-vectors (float version). Result is stored in c.

static int Kitware.VTK.vtkMath.AreBoundsInitialized ( IntPtr  bounds)
static

Are the bounds initialized?

static IntPtr Kitware.VTK.vtkMath.BeginCombination ( int  m,
int  n 
)
static

Start iterating over "m choose n" objects. This function returns an array of n integers, each from 0 to m-1. These integers represent the n items chosen from the set [0,m[.

You are responsible for calling vtkMath::FreeCombination() once the iterator is no longer needed.

Warning: this gets large very quickly, especially when n nears m/2! (Hint: think of Pascal's triangle.)

static long Kitware.VTK.vtkMath.Binomial ( int  m,
int  n 
)
static

The number of combinations of n objects from a pool of m objects (m>n). This is commonly known as "m choose n" and sometimes denoted $_mC_n$ or $\left(\begin{array}{c}m \\ n\end{array}\right)$.

static int Kitware.VTK.vtkMath.BoundsIsWithinOtherBounds ( IntPtr  bounds1,
IntPtr  bounds2,
IntPtr  delta 
)
static

Return true if first 3D bounds is within the second 3D bounds Bounds is x-min, x-max, y-min, y-max, z-min, z-max Delta is the error margin along each axis (usually a small number)

static int Kitware.VTK.vtkMath.Ceil ( double  x)
static

static double Kitware.VTK.vtkMath.ClampAndNormalizeValue ( double  value,
IntPtr  range 
)
static

static void Kitware.VTK.vtkMath.ClampValue ( IntPtr  value,
IntPtr  range 
)
static

static void Kitware.VTK.vtkMath.ClampValue ( double  value,
IntPtr  range,
IntPtr  clamped_value 
)
static

static void Kitware.VTK.vtkMath.ClampValues ( IntPtr  values,
int  nb_values,
IntPtr  range 
)
static

Clamp some values against a range The method without 'clamped_values' will perform in-place clamping.

static void Kitware.VTK.vtkMath.ClampValues ( IntPtr  values,
int  nb_values,
IntPtr  range,
IntPtr  clamped_values 
)
static

Clamp some values against a range The method without 'clamped_values' will perform in-place clamping.

static void Kitware.VTK.vtkMath.Cross ( IntPtr  x,
IntPtr  y,
IntPtr  z 
)
static

Cross product of two 3-vectors. Result (a x b) is stored in z[3].

static float Kitware.VTK.vtkMath.DegreesFromRadians ( float  x)
static

static double Kitware.VTK.vtkMath.DegreesFromRadians ( double  x)
static

static float Kitware.VTK.vtkMath.Determinant2x2 ( IntPtr  c1,
IntPtr  c2 
)
static

Compute determinant of 2x2 matrix. Two columns of matrix are input.

static double Kitware.VTK.vtkMath.Determinant2x2 ( double  a,
double  b,
double  c,
double  d 
)
static

Calculate the determinant of a 2x2 matrix: | a b | | c d |

static float Kitware.VTK.vtkMath.Determinant3x3 ( IntPtr  c1,
IntPtr  c2,
IntPtr  c3 
)
static

static double Kitware.VTK.vtkMath.Determinant3x3 ( double  a1,
double  a2,
double  a3,
double  b1,
double  b2,
double  b3,
double  c1,
double  c2,
double  c3 
)
static

override void Kitware.VTK.vtkMath.Dispose ( bool  disposing)
protected

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkObject.

static float Kitware.VTK.vtkMath.Distance2BetweenPoints ( IntPtr  x,
IntPtr  y 
)
static

static float Kitware.VTK.vtkMath.Dot ( IntPtr  x,
IntPtr  y 
)
static

Dot product of two 3-vectors (float version).

static float Kitware.VTK.vtkMath.Dot2D ( IntPtr  x,
IntPtr  y 
)
static

Dot product of two 2-vectors.

static double Kitware.VTK.vtkMath.DoublePi ( )
static

A mathematical constant (double-precision version). This version is 3.1415926535897932384626.

static double Kitware.VTK.vtkMath.DoubleTwoPi ( )
static

A mathematical constant (double-precision version). This version is 6.283185307179586.

static int Kitware.VTK.vtkMath.ExtentIsWithinOtherExtent ( IntPtr  extent1,
IntPtr  extent2 
)
static

Return true if first 3D extent is within second 3D extent Extent is x-min, x-max, y-min, y-max, z-min, z-max

static long Kitware.VTK.vtkMath.Factorial ( int  N)
static

static int Kitware.VTK.vtkMath.Floor ( double  x)
static

static void Kitware.VTK.vtkMath.FreeCombination ( IntPtr  combination)
static

Free the "iterator" array created by vtkMath::BeginCombination.

static double Kitware.VTK.vtkMath.Gaussian ( )
static

Generate pseudo-random numbers distributed according to the standard normal distribution.

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static double Kitware.VTK.vtkMath.Gaussian ( double  mean,
double  std 
)
static

Generate pseudo-random numbers distributed according to the Gaussian distribution with mean mean and standard deviation std.

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static double Kitware.VTK.vtkMath.GaussianAmplitude ( double  variance,
double  distanceFromMean 
)
static

Compute the amplitude of a Gaussian function with mean=0 and specified variance. That is, 1./(sqrt(2 Pi * variance)) * exp(-distanceFromMean^2/(2.*variance)).

static double Kitware.VTK.vtkMath.GaussianAmplitude ( double  mean,
double  variance,
double  position 
)
static

Compute the amplitude of a Gaussian function with specified mean and variance. That is, 1./(sqrt(2 Pi * variance)) * exp(-(position - mean)^2/(2.*variance)).

static double Kitware.VTK.vtkMath.GaussianWeight ( double  variance,
double  distanceFromMean 
)
static

Compute the amplitude of an unnormalized Gaussian function with mean=0 and specified variance. That is, exp(-distanceFromMean^2/(2.*variance)). When distanceFromMean = 0, this function returns 1.

static double Kitware.VTK.vtkMath.GaussianWeight ( double  mean,
double  variance,
double  position 
)
static

Compute the amplitude of an unnormalized Gaussian function with specified mean and variance. That is, exp(-(position - mean)^2/(2.*variance)). When the distance from 'position' to 'mean' is 0, this function returns 1.

static int Kitware.VTK.vtkMath.GetAdjustedScalarRange ( vtkDataArray  array,
int  comp,
IntPtr  range 
)
static

Get a vtkDataArray's scalar range for a given component. If the vtkDataArray's data type is unsigned char (VTK_UNSIGNED_CHAR) the range is adjusted to the whole data type range [0, 255.0]. Same goes for unsigned short (VTK_UNSIGNED_SHORT) but the upper bound is also adjusted down to 4095.0 if was between ]255, 4095.0]. Return 1 on success, 0 otherwise.

static int Kitware.VTK.vtkMath.GetScalarTypeFittingRange ( double  range_min,
double  range_max,
double  scale,
double  shift 
)
static

Return the scalar type that is most likely to have enough precision to store a given range of data once it has been scaled and shifted (i.e. [range_min * scale + shift, range_max * scale + shift]. If any one of the parameters is not an integer number (decimal part != 0), the search will default to float types only (float or double) Return -1 on error or no scalar type found.

static int Kitware.VTK.vtkMath.GetSeed ( )
static

Return the current seed used by the random number generator.

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static void Kitware.VTK.vtkMath.HSVToRGB ( IntPtr  hsv,
IntPtr  rgb 
)
static

Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.

static void Kitware.VTK.vtkMath.HSVToRGB ( float  h,
float  s,
float  v,
IntPtr  r,
IntPtr  g,
IntPtr  b 
)
static

Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.

static double [] Kitware.VTK.vtkMath.HSVToRGB ( IntPtr  hsv)
static

Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.

static double [] Kitware.VTK.vtkMath.HSVToRGB ( double  h,
double  s,
double  v 
)
static

Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.

static void Kitware.VTK.vtkMath.HSVToRGB ( double  h,
double  s,
double  v,
IntPtr  r,
IntPtr  g,
IntPtr  b 
)
static

Convert color in HSV format (Hue, Saturation, Value) to RGB format (Red, Green, Blue). The input color is not modified.

static double Kitware.VTK.vtkMath.Inf ( )
static

Special IEEE-754 number used to represent positive infinity.

override int Kitware.VTK.vtkMath.IsA ( string  type)
virtual

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

static int Kitware.VTK.vtkMath.IsInf ( double  x)
static

Test if a number is equal to the special floating point value infinity.

static int Kitware.VTK.vtkMath.IsNan ( double  x)
static

Test if a number is equal to the special floating point value Not-A-Number (Nan).

static new int Kitware.VTK.vtkMath.IsTypeOf ( string  type)
static

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

static void Kitware.VTK.vtkMath.LabToRGB ( IntPtr  lab,
IntPtr  rgb 
)
static

Convert color from the CIE-L*ab system to RGB.

static void Kitware.VTK.vtkMath.LabToRGB ( double  L,
double  a,
double  b,
IntPtr  red,
IntPtr  green,
IntPtr  blue 
)
static

Convert color from the CIE-L*ab system to RGB.

static IntPtr Kitware.VTK.vtkMath.LabToRGB ( IntPtr  lab)
static

Convert color from the CIE-L*ab system to RGB.

static void Kitware.VTK.vtkMath.LabToXYZ ( IntPtr  lab,
IntPtr  xyz 
)
static

Convert color from the CIE-L*ab system to CIE XYZ.

static void Kitware.VTK.vtkMath.LabToXYZ ( double  L,
double  a,
double  b,
IntPtr  x,
IntPtr  y,
IntPtr  z 
)
static

Convert color from the CIE-L*ab system to CIE XYZ.

static IntPtr Kitware.VTK.vtkMath.LabToXYZ ( IntPtr  lab)
static

Convert color from the CIE-L*ab system to CIE XYZ.

static void Kitware.VTK.vtkMath.MultiplyScalar ( IntPtr  a,
float  s 
)
static

Multiplies a 3-vector by a scalar (float version). This modifies the input 3-vector.

static void Kitware.VTK.vtkMath.MultiplyScalar ( IntPtr  a,
double  s 
)
static

Multiplies a 3-vector by a scalar (double version). This modifies the input 3-vector.

static void Kitware.VTK.vtkMath.MultiplyScalar2D ( IntPtr  a,
float  s 
)
static

Multiplies a 2-vector by a scalar (float version). This modifies the input 2-vector.

static void Kitware.VTK.vtkMath.MultiplyScalar2D ( IntPtr  a,
double  s 
)
static

Multiplies a 2-vector by a scalar (double version). This modifies the input 2-vector.

static double Kitware.VTK.vtkMath.Nan ( )
static

Special IEEE-754 number used to represent Not-A-Number (Nan).

static double Kitware.VTK.vtkMath.NegInf ( )
static

Special IEEE-754 number used to represent negative infinity.

static new vtkMath Kitware.VTK.vtkMath.New ( )
static

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

new vtkMath Kitware.VTK.vtkMath.NewInstance ( )

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

static int Kitware.VTK.vtkMath.NextCombination ( int  m,
int  n,
IntPtr  combination 
)
static

Given m, n, and a valid combination of n integers in the range [0,m[, this function alters the integers into the next combination in a sequence of all combinations of n items from a pool of m.

If the combination is the last item in the sequence on input, then combination is unaltered and 0 is returned. Otherwise, 1 is returned and combination is updated.

static float Kitware.VTK.vtkMath.Norm ( IntPtr  x,
int  n 
)
static

Compute the norm of n-vector. x is the vector, n is its length.

static float Kitware.VTK.vtkMath.Norm ( IntPtr  x)
static

Compute the norm of 3-vector.

static float Kitware.VTK.vtkMath.Norm2D ( IntPtr  x)
static

Compute the norm of a 2-vector.

static float Kitware.VTK.vtkMath.Normalize ( IntPtr  x)
static

static float Kitware.VTK.vtkMath.Normalize2D ( IntPtr  x)
static

static void Kitware.VTK.vtkMath.Perpendiculars ( IntPtr  x,
IntPtr  y,
IntPtr  z,
double  theta 
)
static

Given a unit vector x, find two unit vectors y and z such that x cross y = z (i.e. the vectors are perpendicular to each other). There is an infinite number of such vectors, specify an angle theta to choose one set. If you want only one perpendicular vector, specify NULL for z.

static float Kitware.VTK.vtkMath.Pi ( )
static

A mathematical constant. This version is 3.14159265358979f.

static int Kitware.VTK.vtkMath.PointIsWithinBounds ( IntPtr  point,
IntPtr  bounds,
IntPtr  delta 
)
static

Return true if point is within the given 3D bounds Bounds is x-min, x-max, y-min, y-max, z-min, z-max Delta is the error margin along each axis (usually a small number)

static bool Kitware.VTK.vtkMath.ProjectVector ( IntPtr  a,
IntPtr  b,
IntPtr  projection 
)
static

Compute the projection of vector a on vector b and return it in projection[3]. If b is a zero vector, the function returns false and 'projection' is invalid. Otherwise, it returns true.

static bool Kitware.VTK.vtkMath.ProjectVector2D ( IntPtr  a,
IntPtr  b,
IntPtr  projection 
)
static

Compute the projection of 2D vector 'a' on 2D vector 'b' and returns the result in projection[2]. If b is a zero vector, the function returns false and 'projection' is invalid. Otherwise, it returns true.

static float Kitware.VTK.vtkMath.RadiansFromDegrees ( float  x)
static

static double Kitware.VTK.vtkMath.RadiansFromDegrees ( double  x)
static

static double Kitware.VTK.vtkMath.Random ( )
static

Generate pseudo-random numbers distributed according to the uniform distribution between 0.0 and 1.0. This is used to provide portability across different systems.

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static double Kitware.VTK.vtkMath.Random ( double  min,
double  max 
)
static

Generate pseudo-random numbers distributed according to the uniform distribution between min and max.

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static void Kitware.VTK.vtkMath.RandomSeed ( int  s)
static

Initialize seed value. NOTE: Random() has the bad property that the first random number returned after RandomSeed() is called is proportional to the seed value! To help solve this, call RandomSeed() a few times inside seed. This doesn't ruin the repeatability of Random().

DON'T USE Random(), RandomSeed(), GetSeed(), Gaussian() THIS IS STATIC SO THIS IS PRONE TO ERRORS (SPECIALLY FOR REGRESSION TESTS) THIS IS HERE FOR BACKWARD COMPATIBILITY ONLY. Instead, for a sequence of random numbers with a uniform distribution create a vtkMinimalStandardRandomSequence object. For a sequence of random numbers with a gaussian/normal distribution create a vtkBoxMuellerRandomSequence object.

static void Kitware.VTK.vtkMath.RGBToHSV ( IntPtr  rgb,
IntPtr  hsv 
)
static

Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.

static void Kitware.VTK.vtkMath.RGBToHSV ( float  r,
float  g,
float  b,
IntPtr  h,
IntPtr  s,
IntPtr  v 
)
static

Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.

static double [] Kitware.VTK.vtkMath.RGBToHSV ( IntPtr  rgb)
static

Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.

static double [] Kitware.VTK.vtkMath.RGBToHSV ( double  r,
double  g,
double  b 
)
static

Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.

static void Kitware.VTK.vtkMath.RGBToHSV ( double  r,
double  g,
double  b,
IntPtr  h,
IntPtr  s,
IntPtr  v 
)
static

Convert color in RGB format (Red, Green, Blue) to HSV format (Hue, Saturation, Value). The input color is not modified.

static void Kitware.VTK.vtkMath.RGBToLab ( IntPtr  rgb,
IntPtr  lab 
)
static

Convert color from the RGB system to CIE-L*ab.

static void Kitware.VTK.vtkMath.RGBToLab ( double  red,
double  green,
double  blue,
IntPtr  L,
IntPtr  a,
IntPtr  b 
)
static

Convert color from the RGB system to CIE-L*ab.

static IntPtr Kitware.VTK.vtkMath.RGBToLab ( IntPtr  rgb)
static

Convert color from the RGB system to CIE-L*ab.

static void Kitware.VTK.vtkMath.RGBToXYZ ( IntPtr  rgb,
IntPtr  xyz 
)
static

Convert color from the RGB system to CIE XYZ.

static void Kitware.VTK.vtkMath.RGBToXYZ ( double  r,
double  g,
double  b,
IntPtr  x,
IntPtr  y,
IntPtr  z 
)
static

Convert color from the RGB system to CIE XYZ.

static IntPtr Kitware.VTK.vtkMath.RGBToXYZ ( IntPtr  rgb)
static

Convert color from the RGB system to CIE XYZ.

static int Kitware.VTK.vtkMath.Round ( float  f)
static

Rounds a float to the nearest integer.

static int Kitware.VTK.vtkMath.Round ( double  f)
static

Rounds a float to the nearest integer.

static new vtkMath Kitware.VTK.vtkMath.SafeDownCast ( vtkObjectBase  o)
static

Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

Here is the call graph for this function:

static double Kitware.VTK.vtkMath.Solve3PointCircle ( IntPtr  p1,
IntPtr  p2,
IntPtr  p3,
IntPtr  center 
)
static

In Euclidean space, there is a unique circle passing through any given three non-collinear points P1, P2, and P3. Using Cartesian coordinates to represent these points as spatial vectors, it is possible to use the dot product and cross product to calculate the radius and center of the circle. See: http://en.wikipedia.org/wiki/Circumcircle and more specifically the section Barycentric coordinates from cross- and dot-products

static void Kitware.VTK.vtkMath.Subtract ( IntPtr  a,
IntPtr  b,
IntPtr  c 
)
static

Subtraction of two 3-vectors (float version). Result is stored in c according to c = a - b.

static void Kitware.VTK.vtkMath.UninitializeBounds ( IntPtr  bounds)
static

Set the bounds to an uninitialized state

static void Kitware.VTK.vtkMath.XYZToLab ( IntPtr  xyz,
IntPtr  lab 
)
static

Convert Color from the CIE XYZ system to CIE-L*ab.

static void Kitware.VTK.vtkMath.XYZToLab ( double  x,
double  y,
double  z,
IntPtr  L,
IntPtr  a,
IntPtr  b 
)
static

Convert Color from the CIE XYZ system to CIE-L*ab.

static IntPtr Kitware.VTK.vtkMath.XYZToLab ( IntPtr  xyz)
static

Convert Color from the CIE XYZ system to CIE-L*ab.

static void Kitware.VTK.vtkMath.XYZToRGB ( IntPtr  xyz,
IntPtr  rgb 
)
static

Convert color from the CIE XYZ system to RGB.

static void Kitware.VTK.vtkMath.XYZToRGB ( double  x,
double  y,
double  z,
IntPtr  r,
IntPtr  g,
IntPtr  b 
)
static

Convert color from the CIE XYZ system to RGB.

static IntPtr Kitware.VTK.vtkMath.XYZToRGB ( IntPtr  xyz)
static

Convert color from the CIE XYZ system to RGB.

Member Data Documentation

new readonly string Kitware.VTK.vtkMath.MRClassNameKey = "7vtkMath"
static

Automatically generated type registration mechanics.

new const string Kitware.VTK.vtkMath.MRFullTypeName = "Kitware.VTK.vtkMath"

Automatically generated type registration mechanics.


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