feat: qwidget layout

This commit is contained in:
djaidjai committed 2024-05-26 03:03:21 +02:00
1 parent 4a5b7c4712
commit 7d7e1a5b95
8 files changed
+801 -268

No files matched your search

+5 -2
View File
@@ -11,7 +11,9 @@
/** This class manages the upper levels of the vtk pipeline; it has attributes for the vtkrenderWindow and a vector of Layers to represent a variable number of vtkRenderers.
* It can also set up a vtkTimer by connecting an instance of TimerCallbackCommand with its contained vtkRenderWindowInteractor.
*/
class Program {
class Program : public QVTKOpenGLNativeWidget {
Q_OBJECT
private:
/** This attribute models a variable number of vtkRenderers, managed through the abstract Layer class.
*/
@@ -48,7 +50,8 @@ private:
public:
/** Constructor.
*/
Program(int timerDT, vtkSmartPointer<vtkGenericOpenGLRenderWindow> win);
Program(QWidget *parent = nullptr);
~Program() override;
/** This function adds a new layer (and thus vtkRenderer) to the program.
* The layer is expected to set its own position in the vtkRenderWindow layer system.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.