Commit ad69d42b authored by Ben Boeckel's avatar Ben Boeckel

Common/Transforms: use VTK_SIZEHINT

parent 3d5bda45
......@@ -53,9 +53,9 @@ public:
* Synonymous with TransformDoubleNormal(x,y,z).
* Use this if you are programming in python or Java.
*/
double *TransformNormal(double x, double y, double z) {
double *TransformNormal(double x, double y, double z) VTK_SIZEHINT(3) {
return this->TransformDoubleNormal(x,y,z); }
double *TransformNormal(const double normal[3]) {
double *TransformNormal(const double normal[3]) VTK_SIZEHINT(3) {
return this->TransformDoubleNormal(normal[0],normal[1],normal[2]); };
//@{
......@@ -63,13 +63,13 @@ public:
* Apply the transformation to an (x,y,z) normal.
* Use this if you are programming in python or Java.
*/
float *TransformFloatNormal(float x, float y, float z) {
float *TransformFloatNormal(float x, float y, float z) VTK_SIZEHINT(3) {
this->InternalFloatPoint[0] = x;
this->InternalFloatPoint[1] = y;
this->InternalFloatPoint[2] = z;
this->TransformNormal(this->InternalFloatPoint,this->InternalFloatPoint);
return this->InternalFloatPoint; };
float *TransformFloatNormal(const float normal[3]) {
float *TransformFloatNormal(const float normal[3]) VTK_SIZEHINT(3) {
return this->TransformFloatNormal(normal[0],normal[1],normal[2]); };
//@}
......@@ -78,13 +78,13 @@ public:
* Apply the transformation to a double-precision (x,y,z) normal.
* Use this if you are programming in python or Java.
*/
double *TransformDoubleNormal(double x, double y, double z) {
double *TransformDoubleNormal(double x, double y, double z) VTK_SIZEHINT(3) {
this->InternalDoublePoint[0] = x;
this->InternalDoublePoint[1] = y;
this->InternalDoublePoint[2] = z;
this->TransformNormal(this->InternalDoublePoint,this->InternalDoublePoint);
return this->InternalDoublePoint; };
double *TransformDoubleNormal(const double normal[3]) {
double *TransformDoubleNormal(const double normal[3]) VTK_SIZEHINT(3) {
return this->TransformDoubleNormal(normal[0],normal[1],normal[2]); };
//@}
......@@ -92,9 +92,9 @@ public:
* Synonymous with TransformDoubleVector(x,y,z).
* Use this if you are programming in python or Java.
*/
double *TransformVector(double x, double y, double z) {
double *TransformVector(double x, double y, double z) VTK_SIZEHINT(3) {
return this->TransformDoubleVector(x,y,z); }
double *TransformVector(const double normal[3]) {
double *TransformVector(const double normal[3]) VTK_SIZEHINT(3) {
return this->TransformDoubleVector(normal[0],normal[1],normal[2]); };
/**
......@@ -116,13 +116,13 @@ public:
* Apply the transformation to an (x,y,z) vector.
* Use this if you are programming in python or Java.
*/
float *TransformFloatVector(float x, float y, float z) {
float *TransformFloatVector(float x, float y, float z) VTK_SIZEHINT(3) {
this->InternalFloatPoint[0] = x;
this->InternalFloatPoint[1] = y;
this->InternalFloatPoint[2] = z;
this->TransformVector(this->InternalFloatPoint,this->InternalFloatPoint);
return this->InternalFloatPoint; };
float *TransformFloatVector(const float vec[3]) {
float *TransformFloatVector(const float vec[3]) VTK_SIZEHINT(3) {
return this->TransformFloatVector(vec[0],vec[1],vec[2]); };
//@}
......@@ -131,13 +131,13 @@ public:
* Apply the transformation to a double-precision (x,y,z) vector.
* Use this if you are programming in python or Java.
*/
double *TransformDoubleVector(double x, double y, double z) {
double *TransformDoubleVector(double x, double y, double z) VTK_SIZEHINT(3) {
this->InternalDoublePoint[0] = x;
this->InternalDoublePoint[1] = y;
this->InternalDoublePoint[2] = z;
this->TransformVector(this->InternalDoublePoint,this->InternalDoublePoint);
return this->InternalDoublePoint; };
double *TransformDoubleVector(const double vec[3]) {
double *TransformDoubleVector(const double vec[3]) VTK_SIZEHINT(3) {
return this->TransformDoubleVector(vec[0],vec[1],vec[2]); };
//@}
......
......@@ -228,7 +228,7 @@ class VTKCOMMONTRANSFORMS_EXPORT vtkTransform : public vtkLinearTransform
orient[0] = static_cast<float>(temp[0]);
orient[1] = static_cast<float>(temp[1]);
orient[2] = static_cast<float>(temp[2]); };
double *GetOrientation() {
double *GetOrientation() VTK_SIZEHINT(3) {
this->GetOrientation(this->ReturnValue); return this->ReturnValue; };
//@}
......@@ -250,7 +250,7 @@ class VTKCOMMONTRANSFORMS_EXPORT vtkTransform : public vtkLinearTransform
wxyz[1]=static_cast<float>(temp[1]);
wxyz[2]=static_cast<float>(temp[2]);
wxyz[3]=static_cast<float>(temp[3]);};
double *GetOrientationWXYZ() {
double *GetOrientationWXYZ() VTK_SIZEHINT(4) {
this->GetOrientationWXYZ(this->ReturnValue); return this->ReturnValue; };
//@}
......@@ -266,7 +266,7 @@ class VTKCOMMONTRANSFORMS_EXPORT vtkTransform : public vtkLinearTransform
pos[0] = static_cast<float>(temp[0]);
pos[1] = static_cast<float>(temp[1]);
pos[2] = static_cast<float>(temp[2]); };
double *GetPosition() {
double *GetPosition() VTK_SIZEHINT(3) {
this->GetPosition(this->ReturnValue); return this->ReturnValue; };
//@}
......@@ -283,7 +283,7 @@ class VTKCOMMONTRANSFORMS_EXPORT vtkTransform : public vtkLinearTransform
scale[0] = static_cast<float>(temp[0]);
scale[1] = static_cast<float>(temp[1]);
scale[2] = static_cast<float>(temp[2]); };
double *GetScale() {
double *GetScale() VTK_SIZEHINT(3) {
this->GetScale(this->ReturnValue); return this->ReturnValue; };
//@}
......
......@@ -36,12 +36,6 @@ vtkImageSpatialFilter GetKernelSize 304 3
vtkImageVectorConvolve GetKernel 301 3
vtkImageViewer GetPosition 304 2
vtkImageViewer GetSize 304 2
vtkLinearTransform TransformDoubleNormal 307 3
vtkLinearTransform TransformDoubleVector 307 3
vtkLinearTransform TransformFloatNormal 301 3
vtkLinearTransform TransformFloatVector 301 3
vtkLinearTransform TransformNormal 307 3
vtkLinearTransform TransformVector 307 3
vtkMedicalImageProperties GetNthWindowLevelPreset 307 2
vtkMedicalImageProperties GetWindowLevelPreset 307 2
vtkMINCImageReader GetDataRange 307 2
......@@ -61,12 +55,6 @@ vtkSphericalDirectionEncoder GetDecodedGradient 301 3
vtkStreamer GetStartPosition 307 3
vtkStructuredPointsGeometryFilter GetExtent 304 6
vtkSynchronizedTemplates3D GetExecuteExtent 304 6
vtkTransform GetDoublePoint 307 4
vtkTransform GetOrientation 307 3
vtkTransform GetOrientationWXYZ 307 4
vtkTransform GetPoint 307 4
vtkTransform GetPosition 307 3
vtkTransform GetScale 307 3
vtkUnstructuredGrid GetUpdateExtent 304 6
vtkViewRays GetParallelIncrements 301 2
vtkViewRays GetParallelStartPosition 301 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment