Commit eeef66fe authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot

Merge topic 'use-source-based-size-hints'

62f78ba7 Examples: remove hint file
67b32b87 hints: remove the hints file
6c9b59e7 Rendering/Volume: use VTK_SIZEHINT
f982c875 Interaction/Image: use VTK_SIZEHINT
07caabb7 Imaging/Statistics: use VTK_SIZEHINT
07d3d100 Imaging/Sources: use VTK_SIZEHINT
79079885 Imaging/General: use VTK_SIZEHINT
b06d713d Imaging/Core: use VTK_SIZEHINT
...
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Gobbi's avatarDavid Gobbi <david.gobbi@gmail.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !3706
parents 55a2dcc8 62f78ba7
...@@ -10,13 +10,10 @@ set_property(CACHE VTK_PYTHON_VERSION ...@@ -10,13 +10,10 @@ set_property(CACHE VTK_PYTHON_VERSION
# Force reset of hints file location in cache if it was moved # Force reset of hints file location in cache if it was moved
if(VTK_WRAP_HINTS AND NOT EXISTS ${VTK_WRAP_HINTS}) if(VTK_WRAP_HINTS AND NOT EXISTS ${VTK_WRAP_HINTS})
set(VTK_WRAP_HINTS "VTK_WRAP_HINTS-NOTFOUND") unset(VTK_WRAP_HINTS CACHE)
unset(VTK_WRAP_HINTS)
endif() endif()
find_file(VTK_WRAP_HINTS hints ${VTK_SOURCE_DIR}/Wrapping/Tools
NO_CMAKE_FIND_ROOT_PATH)
mark_as_advanced(VTK_WRAP_HINTS)
if(BUILD_TESTING OR VTK_WRAP_PYTHON) if(BUILD_TESTING OR VTK_WRAP_PYTHON)
# Need PYTHON_EXECUTABLE for HeaderTesting or python wrapping # Need PYTHON_EXECUTABLE for HeaderTesting or python wrapping
find_package(PythonInterp ${VTK_PYTHON_VERSION} QUIET) find_package(PythonInterp ${VTK_PYTHON_VERSION} QUIET)
......
...@@ -324,8 +324,8 @@ vtkArrayDownCast_TemplateFastCastMacro(vtkAOSDataArrayTemplate) ...@@ -324,8 +324,8 @@ vtkArrayDownCast_TemplateFastCastMacro(vtkAOSDataArrayTemplate)
void InsertValue(vtkIdType id, T f) \ void InsertValue(vtkIdType id, T f) \
VTK_EXPECTS(0 <= id); \ VTK_EXPECTS(0 <= id); \
vtkIdType InsertNextValue(T f); \ vtkIdType InsertNextValue(T f); \
T *GetValueRange(int comp); \ T *GetValueRange(int comp) VTK_SIZEHINT(2); \
T *GetValueRange(); \ T *GetValueRange() VTK_SIZEHINT(2); \
T* WritePointer(vtkIdType id, vtkIdType number); \ T* WritePointer(vtkIdType id, vtkIdType number); \
T* GetPointer(vtkIdType id); \ T* GetPointer(vtkIdType id); \
void SetArray(VTK_ZEROCOPY T* array, vtkIdType size, int save); \ void SetArray(VTK_ZEROCOPY T* array, vtkIdType size, int save); \
......
...@@ -118,15 +118,20 @@ public: ...@@ -118,15 +118,20 @@ public:
double GetTuple1(vtkIdType tupleIdx) double GetTuple1(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
double* GetTuple2(vtkIdType tupleIdx) double* GetTuple2(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
VTK_SIZEHINT(2);
double* GetTuple3(vtkIdType tupleIdx) double* GetTuple3(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
VTK_SIZEHINT(3);
double* GetTuple4(vtkIdType tupleIdx) double* GetTuple4(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
VTK_SIZEHINT(4);
double* GetTuple6(vtkIdType tupleIdx) double* GetTuple6(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
VTK_SIZEHINT(6);
double* GetTuple9(vtkIdType tupleIdx) double* GetTuple9(vtkIdType tupleIdx)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()); VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
VTK_SIZEHINT(9);
//@} //@}
void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx,
...@@ -380,7 +385,7 @@ public: ...@@ -380,7 +385,7 @@ public:
* modified or the requested component changes. * modified or the requested component changes.
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
double* GetRange(int comp) double* GetRange(int comp) VTK_SIZEHINT(2)
{ {
this->GetRange(this->Range, comp); this->GetRange(this->Range, comp);
return this->Range; return this->Range;
...@@ -394,7 +399,7 @@ public: ...@@ -394,7 +399,7 @@ public:
* on subsequent calls to GetRange() unless the array is modified. * on subsequent calls to GetRange() unless the array is modified.
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
double* GetRange() double* GetRange() VTK_SIZEHINT(2)
{ {
return this->GetRange(0); return this->GetRange(0);
} }
...@@ -435,7 +440,7 @@ public: ...@@ -435,7 +440,7 @@ public:
* modified or the requested component changes. * modified or the requested component changes.
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
double *GetFiniteRange(int comp) double *GetFiniteRange(int comp) VTK_SIZEHINT(2)
{ {
this->GetFiniteRange(this->FiniteRange, comp); this->GetFiniteRange(this->FiniteRange, comp);
return this->FiniteRange; return this->FiniteRange;
...@@ -449,7 +454,7 @@ public: ...@@ -449,7 +454,7 @@ public:
* on subsequent calls to GetRange() unless the array is modified. * on subsequent calls to GetRange() unless the array is modified.
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
double *GetFiniteRange() double *GetFiniteRange() VTK_SIZEHINT(2)
{ {
return this->GetFiniteRange(0); return this->GetFiniteRange(0);
} }
......
...@@ -222,14 +222,14 @@ public: ...@@ -222,14 +222,14 @@ public:
* native data type. * native data type.
*/ */
void GetValueRange(ValueType range[2], int comp); void GetValueRange(ValueType range[2], int comp);
ValueType *GetValueRange(int comp); ValueType *GetValueRange(int comp) VTK_SIZEHINT(2);
//@} //@}
/** /**
* Get the range of array values for the 0th component in the * Get the range of array values for the 0th component in the
* native data type. * native data type.
*/ */
ValueType *GetValueRange() { return this->GetValueRange(0); } ValueType *GetValueRange() VTK_SIZEHINT(2) { return this->GetValueRange(0); }
void GetValueRange(ValueType range[2]) { this->GetValueRange(range, 0); } void GetValueRange(ValueType range[2]) { this->GetValueRange(range, 0); }
/** /**
......
...@@ -316,7 +316,7 @@ public: ...@@ -316,7 +316,7 @@ public:
* Return an RGBA color value for the given index into the lookup table. Color * Return an RGBA color value for the given index into the lookup table. Color
* components are expressed as [0,1] double values. * components are expressed as [0,1] double values.
*/ */
double *GetTableValue(vtkIdType id); double *GetTableValue(vtkIdType id) VTK_SIZEHINT(4);
/** /**
* Return an RGBA color value for the given index into the lookup table. Color * Return an RGBA color value for the given index into the lookup table. Color
...@@ -348,7 +348,7 @@ public: ...@@ -348,7 +348,7 @@ public:
* Sets/Gets the range of scalars which will be mapped. This is a duplicate * Sets/Gets the range of scalars which will be mapped. This is a duplicate
* of Get/SetTableRange. * of Get/SetTableRange.
*/ */
double *GetRange() override double *GetRange() VTK_SIZEHINT(2) override
{ return this->GetTableRange(); } { return this->GetTableRange(); }
void SetRange(double min, double max) override void SetRange(double min, double max) override
{ this->SetTableRange(min, max); } { this->SetTableRange(min, max); }
......
...@@ -956,8 +956,8 @@ public: ...@@ -956,8 +956,8 @@ public:
static void RGBToHSV(const float rgb[3], float hsv[3]) static void RGBToHSV(const float rgb[3], float hsv[3])
{ RGBToHSV(rgb[0], rgb[1], rgb[2], hsv, hsv+1, hsv+2); } { RGBToHSV(rgb[0], rgb[1], rgb[2], hsv, hsv+1, hsv+2); }
static void RGBToHSV(float r, float g, float b, float *h, float *s, float *v); static void RGBToHSV(float r, float g, float b, float *h, float *s, float *v);
static double* RGBToHSV(const double rgb[3]); static double* RGBToHSV(const double rgb[3]) VTK_SIZEHINT(3);
static double* RGBToHSV(double r, double g, double b); static double* RGBToHSV(double r, double g, double b) VTK_SIZEHINT(3);
static void RGBToHSV(const double rgb[3], double hsv[3]) static void RGBToHSV(const double rgb[3], double hsv[3])
{ RGBToHSV(rgb[0], rgb[1], rgb[2], hsv, hsv+1, hsv+2); } { RGBToHSV(rgb[0], rgb[1], rgb[2], hsv, hsv+1, hsv+2); }
static void RGBToHSV(double r, double g, double b, double *h, double *s, double *v); static void RGBToHSV(double r, double g, double b, double *h, double *s, double *v);
...@@ -974,8 +974,8 @@ public: ...@@ -974,8 +974,8 @@ public:
static void HSVToRGB(const float hsv[3], float rgb[3]) static void HSVToRGB(const float hsv[3], float rgb[3])
{ HSVToRGB(hsv[0], hsv[1], hsv[2], rgb, rgb+1, rgb+2); } { HSVToRGB(hsv[0], hsv[1], hsv[2], rgb, rgb+1, rgb+2); }
static void HSVToRGB(float h, float s, float v, float *r, float *g, float *b); static void HSVToRGB(float h, float s, float v, float *r, float *g, float *b);
static double* HSVToRGB(const double hsv[3]); static double* HSVToRGB(const double hsv[3]) VTK_SIZEHINT(3);
static double* HSVToRGB(double h, double s, double v); static double* HSVToRGB(double h, double s, double v) VTK_SIZEHINT(3);
static void HSVToRGB(const double hsv[3], double rgb[3]) static void HSVToRGB(const double hsv[3], double rgb[3])
{ HSVToRGB(hsv[0], hsv[1], hsv[2], rgb, rgb+1, rgb+2); } { HSVToRGB(hsv[0], hsv[1], hsv[2], rgb, rgb+1, rgb+2); }
static void HSVToRGB(double h, double s, double v, double *r, double *g, double *b); static void HSVToRGB(double h, double s, double v, double *r, double *g, double *b);
...@@ -990,7 +990,7 @@ public: ...@@ -990,7 +990,7 @@ public:
} }
static void LabToXYZ(double L, double a, double b, static void LabToXYZ(double L, double a, double b,
double *x, double *y, double *z); double *x, double *y, double *z);
static double *LabToXYZ(const double lab[3]); static double *LabToXYZ(const double lab[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
...@@ -1002,7 +1002,7 @@ public: ...@@ -1002,7 +1002,7 @@ public:
} }
static void XYZToLab(double x, double y, double z, static void XYZToLab(double x, double y, double z,
double *L, double *a, double *b); double *L, double *a, double *b);
static double *XYZToLab(const double xyz[3]); static double *XYZToLab(const double xyz[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
...@@ -1014,7 +1014,7 @@ public: ...@@ -1014,7 +1014,7 @@ public:
} }
static void XYZToRGB(double x, double y, double z, static void XYZToRGB(double x, double y, double z,
double *r, double *g, double *b); double *r, double *g, double *b);
static double *XYZToRGB(const double xyz[3]); static double *XYZToRGB(const double xyz[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
...@@ -1026,7 +1026,7 @@ public: ...@@ -1026,7 +1026,7 @@ public:
} }
static void RGBToXYZ(double r, double g, double b, static void RGBToXYZ(double r, double g, double b,
double *x, double *y, double *z); double *x, double *y, double *z);
static double *RGBToXYZ(const double rgb[3]); static double *RGBToXYZ(const double rgb[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
...@@ -1041,7 +1041,7 @@ public: ...@@ -1041,7 +1041,7 @@ public:
} }
static void RGBToLab(double red, double green, double blue, static void RGBToLab(double red, double green, double blue,
double *L, double *a, double *b); double *L, double *a, double *b);
static double *RGBToLab(const double rgb[3]); static double *RGBToLab(const double rgb[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
...@@ -1053,7 +1053,7 @@ public: ...@@ -1053,7 +1053,7 @@ public:
} }
static void LabToRGB(double L, double a, double b, static void LabToRGB(double L, double a, double b,
double *red, double *green, double *blue); double *red, double *green, double *blue);
static double *LabToRGB(const double lab[3]); static double *LabToRGB(const double lab[3]) VTK_SIZEHINT(3);
//@} //@}
//@{ //@{
......
...@@ -133,6 +133,7 @@ public: ...@@ -133,6 +133,7 @@ public:
*/ */
double *GetPoint(vtkIdType id) double *GetPoint(vtkIdType id)
VTK_EXPECTS(0 <= id && id < GetNumberOfPoints()) VTK_EXPECTS(0 <= id && id < GetNumberOfPoints())
VTK_SIZEHINT(3)
{ return this->Data->GetTuple(id); } { return this->Data->GetTuple(id); }
/** /**
...@@ -141,6 +142,7 @@ public: ...@@ -141,6 +142,7 @@ public:
*/ */
void GetPoint(vtkIdType id, double x[3]) void GetPoint(vtkIdType id, double x[3])
VTK_EXPECTS(0 <= id && id < GetNumberOfPoints()) VTK_EXPECTS(0 <= id && id < GetNumberOfPoints())
VTK_SIZEHINT(3)
{ this->Data->GetTuple(id,x); } { this->Data->GetTuple(id,x); }
/** /**
...@@ -225,7 +227,7 @@ public: ...@@ -225,7 +227,7 @@ public:
/** /**
* Return the bounds of the points. * Return the bounds of the points.
*/ */
double *GetBounds(); double *GetBounds() VTK_SIZEHINT(6);
/** /**
* Return the bounds of the points. * Return the bounds of the points.
......
...@@ -131,7 +131,7 @@ public: ...@@ -131,7 +131,7 @@ public:
* and its values are only valid as long as another method invocation is not * and its values are only valid as long as another method invocation is not
* performed. Prefer GetPoint() with the return value in argument. * performed. Prefer GetPoint() with the return value in argument.
*/ */
double *GetPoint(vtkIdType id) { return this->Data->GetTuple(id);} double *GetPoint(vtkIdType id) VTK_SIZEHINT(2) { return this->Data->GetTuple(id);}
/** /**
* Copy point components into user provided array v[2] for specified id. * Copy point components into user provided array v[2] for specified id.
...@@ -197,7 +197,7 @@ public: ...@@ -197,7 +197,7 @@ public:
/** /**
* Return the bounds of the points. * Return the bounds of the points.
*/ */
double *GetBounds(); double *GetBounds() VTK_SIZEHINT(4);
/** /**
* Return the bounds of the points. * Return the bounds of the points.
......
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
/** /**
* Sets/Gets the range of scalars that will be mapped. * Sets/Gets the range of scalars that will be mapped.
*/ */
virtual double *GetRange(); virtual double *GetRange() VTK_SIZEHINT(2);
virtual void SetRange(double min, double max); virtual void SetRange(double min, double max);
virtual void SetRange(const double rng[2]) virtual void SetRange(const double rng[2])
{this->SetRange(rng[0],rng[1]);} {this->SetRange(rng[0],rng[1]);}
...@@ -102,7 +102,7 @@ public: ...@@ -102,7 +102,7 @@ public:
* Map one value through the lookup table and return the color as * Map one value through the lookup table and return the color as
* an RGB array of doubles between 0 and 1. * an RGB array of doubles between 0 and 1.
*/ */
double *GetColor(double v) double *GetColor(double v) VTK_SIZEHINT(3)
{this->GetColor(v,this->RGB); return this->RGB;} {this->GetColor(v,this->RGB); return this->RGB;}
/** /**
......
...@@ -270,7 +270,7 @@ void Set##name (type _arg[2]) \ ...@@ -270,7 +270,7 @@ void Set##name (type _arg[2]) \
} }
#define vtkGetVector2Macro(name,type) \ #define vtkGetVector2Macro(name,type) \
virtual type *Get##name () \ virtual type *Get##name () VTK_SIZEHINT(2) \
{ \ { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \ vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \ return this->name; \
...@@ -304,7 +304,7 @@ virtual void Set##name (type _arg[3]) \ ...@@ -304,7 +304,7 @@ virtual void Set##name (type _arg[3]) \
} }
#define vtkGetVector3Macro(name,type) \ #define vtkGetVector3Macro(name,type) \
virtual type *Get##name () \ virtual type *Get##name () VTK_SIZEHINT(3) \
{ \ { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \ vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \ return this->name; \
...@@ -341,7 +341,7 @@ virtual void Set##name (type _arg[4]) \ ...@@ -341,7 +341,7 @@ virtual void Set##name (type _arg[4]) \
#define vtkGetVector4Macro(name,type) \ #define vtkGetVector4Macro(name,type) \
virtual type *Get##name () \ virtual type *Get##name () VTK_SIZEHINT(4) \
{ \ { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \ vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \ return this->name; \
...@@ -380,7 +380,7 @@ virtual void Set##name (type _arg[6]) \ ...@@ -380,7 +380,7 @@ virtual void Set##name (type _arg[6]) \
} }
#define vtkGetVector6Macro(name,type) \ #define vtkGetVector6Macro(name,type) \
virtual type *Get##name () \ virtual type *Get##name () VTK_SIZEHINT(6) \
{ \ { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \ vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \ return this->name; \
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
* Set/Get the position in screen coordinates of the rendering window. * Set/Get the position in screen coordinates of the rendering window.
* Measured in pixels. * Measured in pixels.
*/ */
virtual int *GetPosition(); virtual int *GetPosition() VTK_SIZEHINT(2);
virtual void SetPosition(int,int); virtual void SetPosition(int,int);
virtual void SetPosition(int a[2]); virtual void SetPosition(int a[2]);
//@} //@}
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
/** /**
* Set/Get the size of the window in screen coordinates in pixels. * Set/Get the size of the window in screen coordinates in pixels.
*/ */
virtual int *GetSize(); virtual int *GetSize() VTK_SIZEHINT(2);
virtual void SetSize(int,int); virtual void SetSize(int,int);
virtual void SetSize(int a[2]); virtual void SetSize(int a[2]);
//@} //@}
...@@ -77,12 +77,12 @@ public: ...@@ -77,12 +77,12 @@ public:
* GetSize() returns the size * this->TileScale, whereas this method returns * GetSize() returns the size * this->TileScale, whereas this method returns
* the size without multiplying with the tile scale. Measured in pixels. * the size without multiplying with the tile scale. Measured in pixels.
*/ */
int *GetActualSize(); int *GetActualSize() VTK_SIZEHINT(2);
/** /**
* Get the current size of the screen in pixels. * Get the current size of the screen in pixels.
*/ */
virtual int *GetScreenSize() = 0; virtual int *GetScreenSize() VTK_SIZEHINT(2) = 0;
//@{ //@{
/** /**
......
...@@ -165,7 +165,7 @@ public: ...@@ -165,7 +165,7 @@ public:
/** /**
* Get the minimum point of the bounding box. * Get the minimum point of the bounding box.
*/ */
const double *GetMinPoint() const; const double *GetMinPoint() const VTK_SIZEHINT(3);
void GetMinPoint(double &x, double &y, double &z) const; void GetMinPoint(double &x, double &y, double &z) const;
//@} //@}
...@@ -173,7 +173,7 @@ public: ...@@ -173,7 +173,7 @@ public:
/** /**
* Get the maximum point of the bounding box. * Get the maximum point of the bounding box.
*/ */
const double *GetMaxPoint() const; const double *GetMaxPoint() const VTK_SIZEHINT(3);
void GetMaxPoint(double &x, double &y, double &z) const; void GetMaxPoint(double &x, double &y, double &z) const;
//@} //@}
......
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
double &yMin, double &yMax, double &yMin, double &yMax,
double &zMin, double &zMax); double &zMin, double &zMax);
void GetBounds(double bounds[6]); void GetBounds(double bounds[6]);
double *GetBounds(); double *GetBounds() VTK_SIZEHINT(6);
/** /**
* A special method that allows union set operation on bounding boxes. * A special method that allows union set operation on bounding boxes.
......
...@@ -297,7 +297,7 @@ public: ...@@ -297,7 +297,7 @@ public:
* Compute cell bounding box (xmin,xmax,ymin,ymax,zmin,zmax). Return pointer * Compute cell bounding box (xmin,xmax,ymin,ymax,zmin,zmax). Return pointer
* to array of six double values. * to array of six double values.
*/ */
double *GetBounds(); double *GetBounds() VTK_SIZEHINT(6);
/** /**
......
...@@ -90,7 +90,7 @@ public: ...@@ -90,7 +90,7 @@ public:
* Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints. * Get point coordinates with ptId such that: 0 <= ptId < NumberOfPoints.
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
virtual double *GetPoint(vtkIdType ptId) = 0; virtual double *GetPoint(vtkIdType ptId) VTK_SIZEHINT(3) = 0;
/** /**
* Copy point coordinates into user provided array x[3] for specified * Copy point coordinates into user provided array x[3] for specified
...@@ -271,7 +271,7 @@ public: ...@@ -271,7 +271,7 @@ public:
* (xmin,xmax, ymin,ymax, zmin,zmax). * (xmin,xmax, ymin,ymax, zmin,zmax).
* THIS METHOD IS NOT THREAD SAFE. * THIS METHOD IS NOT THREAD SAFE.
*/ */
double *GetBounds(); double *GetBounds() VTK_SIZEHINT(6);
/** /**
* Return a pointer to the geometry bounding box in the form * Return a pointer to the geometry bounding box in the form
...@@ -285,7 +285,7 @@ public: ...@@ -285,7 +285,7 @@ public:
* Get the center of the bounding box. * Get the center of the bounding box.
* THIS METHOD IS NOT THREAD SAFE.