VTK
|
#include <vtkAbstractTransform.h>
#include <vtkActor.h>
#include <vtkAssemblyPath.h>
#include "vtkCamera.h"
#include "vtkDebugLeaks.h"
#include <vtkFollower.h>
#include <vtkInformation.h>
#include <vtkLineWidget2.h>
#include "vtkMath.h"
#include <vtkMatrix4x4.h>
#include <vtkPointHandleRepresentation2D.h>
#include <vtkPointPlacer.h>
#include <vtkPolyData.h>
#include <vtkPropCollection.h>
#include <vtkProperty2D.h>
#include <vtkProperty.h>
#include <vtkProp.h>
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
#include "vtkSmartPointer.h"
Go to the source code of this file.
Macros | |
#define | EXERCISE_BASIC_OBJECT_METHODS(object) |
tests basic vtkObject methods More... | |
#define | TEST_SET_GET_BOOLEAN(object, variable) |
test object by calling Set on the variable with false, true, 0, 1, On, Off More... | |
#define | TEST_SET_GET_INT(object, variable, value) |
test an integer variable on the object by setting it to input value using Set, and testing it via the Get More... | |
#define | TEST_SET_GET_INT_RANGE(object, variable, min, max) |
Test an integer variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors epsilon defined as 1. More... | |
#define | TEST_SET_GET_DOUBLE(object, variable, value) |
test a double variable on the object by setting it to input value using Set, and testing it via the Get More... | |
#define | TEST_SET_GET_DOUBLE_RANGE(object, variable, min, max) |
Test a double variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors epsilon set to 1.0. More... | |
#define | TEST_SET_GET_VECTOR3_DOUBLE(object, variable, x, y, z) |
test a vector variable on the object by setting it to a the values x, y, z passed in using Set, and testing it via the Get More... | |
#define | TEST_SET_GET_VECTOR2(object, variable, x, y) |
test a vector variable on the object by setting it to a the values x, y passed in using Set, and testing it via the Get More... | |
#define | TEST_SET_GET_VECTOR2_INT_RANGE(object, variable, min, max) |
test an integer vector2 variable on the object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors. More... | |
#define | TEST_SET_GET_VECTOR2_DOUBLE_RANGE(object, variable, min, max) |
test a double vector2 variable on the object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors. More... | |
#define | TEST_SET_GET_VECTOR3_DOUBLE_RANGE(object, variable, min, max) |
Test a double vector variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors. More... | |
#define | TEST_SET_GET_STRING(object, variable) |
test a string variable on the object by calling Set/Get More... | |
#define | TEST_SET_GET_CHAR(object, variable) |
test a char variable on the object by calling Set/Get More... | |
#define | EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS(object) |
test vtkInteractorObserver methods More... | |
#define | EXERCISE_BASIC_ABSTRACT_METHODS(object) |
test vtkAbstractWidget methods More... | |
#define | EXERCISE_BASIC_BORDER_METHODS(object) |
test vtkBorderWidget methods More... | |
#define | EXERCISE_BASIC_HOVER_METHODS(object) |
test vtkHoverWidget methods, timer duration is clamped so range macro will fail More... | |
#define | EXERCISE_BASIC_PROP_METHODS(className, object) |
test vtkProp methods More... | |
#define | NOT_DEFINED_CONSUMERS_FAIL() |
#define | EXERCISE_BASIC_REPRESENTATION_METHODS(className, object) |
test vtkWidgetRepresentation methods More... | |
#define | EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS(className, object) |
test vtkAngleRepresentation methods More... | |
#define | EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS(className, object) |
test vtkBorderRepresentation methods More... | |
#define | EXERCISE_BASIC_IMPLICIT_PLANE_REPRESENTATION_METHODS(className, object) |
test vtkAngleRepresentation methods More... | |
#define | TEST_SET_GET_PROPERTY(object, variable) |
test objects that have Property and SelectedProperty set/get, with vtkProperty More... | |
#define | EXERCISE_BASIC_HANDLE_REPRESENTATION_METHODS(className, object) |
test vtkHandleRepresentation methods these don't work well in isolation, seg faults when try to get/set display and world positions. More... | |
#define | EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS(className, object) |
test vtkAbstractPolygonalHandleRepresentation3D methods More... | |
#define EXERCISE_BASIC_OBJECT_METHODS | ( | object | ) |
tests basic vtkObject methods
Definition at line 27 of file WidgetTestingMacros.h.
#define TEST_SET_GET_BOOLEAN | ( | object, | |
variable | |||
) |
test object by calling Set on the variable with false, true, 0, 1, On, Off
Definition at line 40 of file WidgetTestingMacros.h.
#define TEST_SET_GET_INT | ( | object, | |
variable, | |||
value | |||
) |
test an integer variable on the object by setting it to input value using Set, and testing it via the Get
Definition at line 69 of file WidgetTestingMacros.h.
#define TEST_SET_GET_INT_RANGE | ( | object, | |
variable, | |||
min, | |||
max | |||
) |
Test an integer variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors epsilon defined as 1.
Definition at line 83 of file WidgetTestingMacros.h.
#define TEST_SET_GET_DOUBLE | ( | object, | |
variable, | |||
value | |||
) |
test a double variable on the object by setting it to input value using Set, and testing it via the Get
Definition at line 104 of file WidgetTestingMacros.h.
#define TEST_SET_GET_DOUBLE_RANGE | ( | object, | |
variable, | |||
min, | |||
max | |||
) |
Test a double variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors epsilon set to 1.0.
Definition at line 118 of file WidgetTestingMacros.h.
#define TEST_SET_GET_VECTOR3_DOUBLE | ( | object, | |
variable, | |||
x, | |||
y, | |||
z | |||
) |
test a vector variable on the object by setting it to a the values x, y, z passed in using Set, and testing it via the Get
Definition at line 139 of file WidgetTestingMacros.h.
#define TEST_SET_GET_VECTOR2 | ( | object, | |
variable, | |||
x, | |||
y | |||
) |
test a vector variable on the object by setting it to a the values x, y passed in using Set, and testing it via the Get
Definition at line 153 of file WidgetTestingMacros.h.
#define TEST_SET_GET_VECTOR2_INT_RANGE | ( | object, | |
variable, | |||
min, | |||
max | |||
) |
test an integer vector2 variable on the object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors.
For now all three elements are set to the same thing each time. epsilon set to 1
Definition at line 169 of file WidgetTestingMacros.h.
#define TEST_SET_GET_VECTOR2_DOUBLE_RANGE | ( | object, | |
variable, | |||
min, | |||
max | |||
) |
test a double vector2 variable on the object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors.
For now all three elements are set to the same thing each time. epsilon set to 1.0
Definition at line 187 of file WidgetTestingMacros.h.
#define TEST_SET_GET_VECTOR3_DOUBLE_RANGE | ( | object, | |
variable, | |||
min, | |||
max | |||
) |
Test a double vector variable on object over the range, calls test set get in with min - epsilon, min, min + epsilon, (min+max)/2, max - epsilon, max, max + epsilon, where first and last test should report errors.
For now all three elements are set to the same thing each time. epsilon set to 1.0
Definition at line 205 of file WidgetTestingMacros.h.
#define TEST_SET_GET_STRING | ( | object, | |
variable | |||
) |
test a string variable on the object by calling Set/Get
Definition at line 219 of file WidgetTestingMacros.h.
#define TEST_SET_GET_CHAR | ( | object, | |
variable | |||
) |
test a char variable on the object by calling Set/Get
Definition at line 258 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS | ( | object | ) |
test vtkInteractorObserver methods
Definition at line 277 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_METHODS | ( | object | ) |
test vtkAbstractWidget methods
Definition at line 365 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_METHODS | ( | object | ) |
test vtkBorderWidget methods
Definition at line 384 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_HOVER_METHODS | ( | object | ) |
test vtkHoverWidget methods, timer duration is clamped so range macro will fail
Definition at line 392 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_PROP_METHODS | ( | className, | |
object | |||
) |
test vtkProp methods
Definition at line 403 of file WidgetTestingMacros.h.
#define NOT_DEFINED_CONSUMERS_FAIL | ( | ) |
Definition at line 461 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkWidgetRepresentation methods
Definition at line 491 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 545 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkBorderRepresentation methods
Definition at line 618 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_IMPLICIT_PLANE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 724 of file WidgetTestingMacros.h.
#define TEST_SET_GET_PROPERTY | ( | object, | |
variable | |||
) |
test objects that have Property and SelectedProperty set/get, with vtkProperty
Definition at line 742 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_HANDLE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkHandleRepresentation methods these don't work well in isolation, seg faults when try to get/set display and world positions.
Definition at line 774 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS | ( | className, | |
object | |||
) |
test vtkAbstractPolygonalHandleRepresentation3D methods
Definition at line 866 of file WidgetTestingMacros.h.