26#ifndef CAMITK_TESTTRANSFORMATIONEXPLORER_H
27#define CAMITK_TESTTRANSFORMATIONEXPLORER_H
42#include <vtkPolyData.h>
43#include <vtkSphereSource.h>
44#include <vtkMatrix4x4.h>
45#include <vtkTransform.h>
58 auto createFramesAndTransformation(QString frame1, QString frame2) {
63 return std::make_tuple(fr1, fr2, tr);
69 Component* createSphere(
float radius = 1.0) {
70 auto sphereSource = vtkSmartPointer<vtkSphereSource>::New();
71 sphereSource->SetRadius(radius);
72 vtkSmartPointer<vtkPointSet> sphere(sphereSource->GetOutput());
92 QVERIFY(explorer !=
nullptr);
97 explorer->getWidget();
105 void cleanupTestCase() {
114 void playWithFramesTransformationsAndComponents() {
116 auto [fr1, fr2, tr] = createFramesAndTransformation(
"Frame1",
"Frame2");
119 QVERIFY(c1 !=
nullptr);
static Viewer * getNewViewer(QString name, QString className)
instantiate a new viewer of the given name and given class name (Viewer inheriting class).
Definition Application.cpp:1119
static bool registerViewer(Viewer *)
register a viewer in the viewer list (therefore allowing it to be refreshed by the main window automa...
Definition Application.cpp:1046
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:304
virtual void refresh()
refresh all the viewer that are currently displaying this Component At the end the InterfaceNode modi...
Definition sdk/libraries/core/component/Component.cpp:253
static void autoload()
Autoload component, action and viewer extensions (dlls) as well as registered CamiTK extension file.
Definition ExtensionManager.cpp:46
@ VIEWER
Viewer extensions: manages the presentation and user interaction logic.
Definition ExtensionManager.h:68
virtual void setTimeStampInformation(bool showTimeStamp)=0
By default a logger should always show the time-stamp in the form of "yyyy-MM-dd HH:mm:ss....
virtual void setMessageBoxLevel(LogLevel level)=0
Set the lowest log level that will open modal message box for messages instead of (silently/undisrupt...
virtual void setLogLevel(LogLevel level)=0
Sets Current verbosity level of the log.
@ TRACE
all types of messages are logged
Definition InterfaceLogger.h:65
@ NONE
No message is logged.
Definition InterfaceLogger.h:61
static InterfaceLogger * getLogger()
get the current application logger
Definition Log.cpp:50
Basic component to manage any kind of mesh.
Definition MeshComponent.h:53