VTK
9.1.0
|
#include "vtkCamera.h"
#include "vtkDebugLeaks.h"
#include "vtkMath.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
#include "vtkSmartPointer.h"
#include <vtkAbstractTransform.h>
#include <vtkActor.h>
#include <vtkAssemblyPath.h>
#include <vtkFollower.h>
#include <vtkInformation.h>
#include <vtkLineWidget2.h>
#include <vtkMatrix4x4.h>
#include <vtkPointHandleRepresentation2D.h>
#include <vtkPointPlacer.h>
#include <vtkPolyData.h>
#include <vtkProp.h>
#include <vtkPropCollection.h>
#include <vtkProperty.h>
#include <vtkProperty2D.h>
Go to the source code of this file.
Macros | |
#define | EXERCISE_BASIC_OBJECT_METHODS(object) |
tests basic vtkObject methods | |
#define | TEST_SET_GET_BOOLEAN(object, variable) |
test object by calling Set on the variable with false, true, 0, 1, On, Off | |
#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 | |
#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. | |
#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 | |
#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. | |
#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 | |
#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 | |
#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. | |
#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. | |
#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. | |
#define | TEST_SET_GET_STRING(object, variable) |
test a string variable on the object by calling Set/Get | |
#define | TEST_SET_GET_CHAR(object, variable) |
test a char variable on the object by calling Set/Get | |
#define | EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS(object) |
test vtkInteractorObserver methods | |
#define | EXERCISE_BASIC_ABSTRACT_METHODS(object) |
test vtkAbstractWidget methods | |
#define | EXERCISE_BASIC_BORDER_METHODS(object) |
test vtkBorderWidget methods | |
#define | EXERCISE_BASIC_HOVER_METHODS(object) |
test vtkHoverWidget methods, timer duration is clamped so range macro will fail | |
#define | EXERCISE_BASIC_PROP_METHODS(className, object) |
test vtkProp methods | |
#define | NOT_DEFINED_CONSUMERS_FAIL() |
#define | EXERCISE_BASIC_REPRESENTATION_METHODS(className, object) |
test vtkWidgetRepresentation methods | |
#define | EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS(className, object) |
test vtkAngleRepresentation methods | |
#define | EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS(className, object) |
test vtkBorderRepresentation methods | |
#define | EXERCISE_BASIC_IMPLICIT_PLANE_REPRESENTATION_METHODS(className, object) |
test vtkAngleRepresentation methods | |
#define | TEST_SET_GET_PROPERTY(object, variable) |
test objects that have Property and SelectedProperty set/get, with vtkProperty | |
#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. | |
#define | EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS(className, object) |
test vtkAbstractPolygonalHandleRepresentation3D methods | |
#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 73 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 87 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 108 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 123 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 144 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 157 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 173 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 191 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 209 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 223 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 262 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS | ( | object | ) |
test vtkInteractorObserver methods
Definition at line 281 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_METHODS | ( | object | ) |
test vtkAbstractWidget methods
Definition at line 374 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_METHODS | ( | object | ) |
test vtkBorderWidget methods
Definition at line 393 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 401 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_PROP_METHODS | ( | className, | |
object | |||
) |
test vtkProp methods
Definition at line 412 of file WidgetTestingMacros.h.
#define NOT_DEFINED_CONSUMERS_FAIL | ( | ) |
Definition at line 471 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkWidgetRepresentation methods
Definition at line 501 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 557 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkBorderRepresentation methods
Definition at line 635 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_IMPLICIT_PLANE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 736 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 753 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 783 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS | ( | className, | |
object | |||
) |
test vtkAbstractPolygonalHandleRepresentation3D methods
Definition at line 877 of file WidgetTestingMacros.h.