#include <vtkPlane.h>
Inheritance diagram for vtkPlane:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
float | EvaluateFunction (float x[3]) |
float | EvaluateFunction (float x, float y, float z) |
void | EvaluateGradient (float x[3], float g[3]) |
virtual void | SetNormal (float, float, float) |
virtual void | SetNormal (float[3]) |
virtual float * | GetNormal () |
virtual void | GetNormal (float data[3]) |
virtual void | SetOrigin (float, float, float) |
virtual void | SetOrigin (float[3]) |
virtual float * | GetOrigin () |
virtual void | GetOrigin (float data[3]) |
Static Public Methods | |
vtkPlane * | New () |
int | IsTypeOf (const char *type) |
vtkPlane * | SafeDownCast (vtkObject *o) |
void | ProjectPoint (float x[3], float origin[3], float normal[3], float xproj[3]) |
void | ProjectPoint (double x[3], double origin[3], double normal[3], double xproj[3]) |
void | GeneralizedProjectPoint (float x[3], float origin[3], float normal[3], float xproj[3]) |
float | Evaluate (float normal[3], float origin[3], float x[3]) |
float | Evaluate (double normal[3], double origin[3], double x[3]) |
float | DistanceToPlane (float x[3], float n[3], float p0[3]) |
int | IntersectWithLine (float p1[3], float p2[3], float n[3], float p0[3], float &t, float x[3]) |
Protected Methods | |
vtkPlane () | |
~vtkPlane () | |
vtkPlane (const vtkPlane &) | |
void | operator= (const vtkPlane &) |
Protected Attributes | |
float | Normal [3] |
float | Origin [3] |
vtkPlane provides methods for various plane computations. These include projecting points onto a plane, evaluating the plane equation, and returning plane normal. vtkPlane is a concrete implementation of the abstract class vtkImplicitFunction.
Definition at line 61 of file vtkPlane.h.
|
|
|
Definition at line 120 of file vtkPlane.h. |
|
Definition at line 121 of file vtkPlane.h. |
|
Construct plane passing through origin and normal to z-axis. Reimplemented from vtkObject. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImplicitFunction. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImplicitFunction. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImplicitFunction. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImplicitFunction. Referenced by vtkPlaneCollection::GetNextItem().
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImplicitFunction. |
|
Evaluate plane equation for point x[3]. Reimplemented from vtkImplicitFunction. |
|
Reimplemented from vtkImplicitFunction. Definition at line 72 of file vtkPlane.h. |
|
Evaluate function gradient at point x[3]. Reimplemented from vtkImplicitFunction. |
|
Set/get plane normal. Plane is defined by point and normal. |
|
|
|
|
|
|
|
Set/get point through which plane passes. Plane is defined by point and normal. |
|
|
|
|
|
|
|
Project a point x onto plane defined by origin and normal. The projected point is returned in xproj. NOTE : normal assumed to have magnitude 1. |
|
|
|
Project a point x onto plane defined by origin and normal. The projected point is returned in xproj. NOTE : normal does NOT have to have magnitude 1. |
|
Quick evaluation of plane equation n(x-origin)=0. Definition at line 129 of file vtkPlane.h. |
|
Definition at line 134 of file vtkPlane.h. |
|
Return the distance of a point x to a plane defined by n(x-p0) = 0. The normal n[3] must be magnitude=1. Definition at line 140 of file vtkPlane.h. |
|
Given a line defined by the two points p1,p2; and a plane defined by the normal n and point p0, compute an intersection. The parametric coordinate along the line is returned in t, and the coordinates of intersection are returned in x. A zero is returned if the plane and line are parallel. |
|
Definition at line 122 of file vtkPlane.h. |
|
Definition at line 124 of file vtkPlane.h. |
|
Definition at line 125 of file vtkPlane.h. |