VTK
9.4.20250323
|
#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 | 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 29 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 43 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 79 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 94 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 116 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 132 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 154 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 168 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 185 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 204 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 223 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 238 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 278 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS | ( | object | ) |
test vtkInteractorObserver methods
Definition at line 298 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_METHODS | ( | object | ) |
test vtkAbstractWidget methods
Definition at line 392 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_METHODS | ( | object | ) |
test vtkBorderWidget methods
Definition at line 412 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 421 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_PROP_METHODS | ( | className, | |
object | |||
) |
test vtkProp methods
Definition at line 433 of file WidgetTestingMacros.h.
#define NOT_DEFINED_CONSUMERS_FAIL | ( | ) |
Definition at line 493 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkWidgetRepresentation methods
Definition at line 528 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 582 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkBorderRepresentation methods
Definition at line 661 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 763 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 794 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS | ( | className, | |
object | |||
) |
test vtkAbstractPolygonalHandleRepresentation3D methods
Definition at line 889 of file WidgetTestingMacros.h.