VTK
9.2.6
|
#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 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 41 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 77 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 92 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 114 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 130 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 152 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 166 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 183 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 202 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 221 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 236 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 276 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_INTERACTOR_OBSERVER_METHODS | ( | object | ) |
test vtkInteractorObserver methods
Definition at line 296 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_METHODS | ( | object | ) |
test vtkAbstractWidget methods
Definition at line 390 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_METHODS | ( | object | ) |
test vtkBorderWidget methods
Definition at line 410 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 419 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_PROP_METHODS | ( | className, | |
object | |||
) |
test vtkProp methods
Definition at line 431 of file WidgetTestingMacros.h.
#define NOT_DEFINED_CONSUMERS_FAIL | ( | ) |
Definition at line 491 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkWidgetRepresentation methods
Definition at line 526 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ANGLE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 580 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_BORDER_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkBorderRepresentation methods
Definition at line 659 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_IMPLICIT_PLANE_REPRESENTATION_METHODS | ( | className, | |
object | |||
) |
test vtkAngleRepresentation methods
Definition at line 761 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 779 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 810 of file WidgetTestingMacros.h.
#define EXERCISE_BASIC_ABSTRACT_POLYGONAL_HANDLE_REPRESENTATION3D_METHODS | ( | className, | |
object | |||
) |
test vtkAbstractPolygonalHandleRepresentation3D methods
Definition at line 905 of file WidgetTestingMacros.h.