|
VTKFIG
0.25.0
Easy VTK based in situ visualization
|
Provide a framework wrapping window+interactor+renderers from vtk. More...
Collaboration diagram for vtkfig::Frame:Classes | |
| struct | SubFrame |
| Data structure decribing subframe Each subframe can hold several figures. More... | |
Public Member Functions | |
| void | SetLayout (int nvpx, int nvpy) |
| Set layout of subframe grid. More... | |
| void | RefreshState (int figurepos) |
| Refresh frame state for figure. More... | |
| void | WritePNG (std::string fname) |
| Write png image of frame content. More... | |
| void | StartVideo (std::string fname) |
| Start video recording. More... | |
| void | StopVideo () |
| Stop video recording. More... | |
| void | AddFigure (std::shared_ptr< Figure > figure) |
| Add figure at position (0) More... | |
| void | AddFigure (std::shared_ptr< Figure > figure, int ipos) |
| Add figure at position in frame. More... | |
| void | RemoveFigure (std::shared_ptr< Figure > figure) |
| Remove figure. More... | |
| void | Clear (void) |
| Remove all figures. More... | |
| void | Unmap () |
| Unmap frame from screen. More... | |
| void | LinkCamera (int ivp, Frame &frame, int livp) |
| Link camera to other camera. More... | |
| void | LinkCamera (int ivp, std::shared_ptr< Frame > frame, int livp) |
| Link camera to other camera. More... | |
| void | LinkCamera (int ivp, Frame *frame, int livp) |
| Link camera to other camera. More... | |
| void | LinkCamera (std::shared_ptr< Frame > frame) |
| Link camera to other frame at default positions. More... | |
| void | LinkCamera (Frame &frame) |
| Link camera to other frame at default positions. More... | |
| void | SetSize (int x, int y) |
| Set frame size in pixels. More... | |
| void | SetWindowTitle (const std::string title) |
| Set window title. More... | |
| void | SetFrameTitle (const std::string title) |
| Set Frame title. More... | |
| void | SetPosition (int x, int y) |
| Set frame position on screen. More... | |
| void | SetSingleSubFrameView (bool b) |
| Toggle single/multi view for frame with mutiple figures. More... | |
| void | SetActiveSubFrame (int iframe) |
| Set active subframe number for editing, single/multiview etc. More... | |
| void | SetActiveSubFrameCameraViewAngle (double angle) |
| Set view angle for camera in active frame relative to default. More... | |
| void | SetActiveSubFrameCameraFocalPoint (double x, double y, double z) |
| Set focal point for camera in active frame relative to default. More... | |
| void | SetActiveSubFrameCameraPosition (double x, double y, double z) |
| Set view position for camera in active frame relative to default. More... | |
| void | Show () |
| Show frame content and continue. More... | |
| void | Interact () |
| Show frame content and wait for interaction. More... | |
| int | pos (const int ivpx, const int ivpy) |
| Subframe position algebra. More... | |
| void | SendCommand (std::string source, internals::Communicator::Command cmd) |
| Blocking send of commands to main thread. More... | |
| void | RTInit () |
| Init title actor. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Frame > | New () |
| Create smart pointer to frame. More... | |
| static Frame & | FindFrame (int number_in_framelist) |
| Find frame with number. More... | |
Public Attributes | |
| int | number_in_frame_list =-1 |
| Number of this frame in global frame list. More... | |
| std::set< std::shared_ptr< Figure > > | figures |
| List of all figures in frame. More... | |
| int | nvpx |
| Number of viewports in x direction. More... | |
| int | nvpy |
| Number of viewports in y direction. More... | |
| std::vector< SubFrame > | subframes |
| List of subframes. More... | |
| const double | default_camera_focal_point [3] ={0.65,0.5,0} |
| Default camera data. More... | |
| struct { | |
| int winsize_x =400 | |
| window sizes More... | |
| } | parameter |
| Parameters to be passed between threads. More... | |
| std::shared_ptr< internals::Thread > | mainthread |
| The spinning main thread. More... | |
| vtkSmartPointer< vtkRenderWindow > | window |
| Window vontaining frame. More... | |
| vtkSmartPointer< vtkCornerAnnotation > | title_actor =0 |
| Actor for frame title annotation. More... | |
| vtkSmartPointer< vtkOggTheoraWriter > | videowriter =0 |
| Video writer. More... | |
Static Public Attributes | |
| static constexpr const char * | KeyboardHelp |
| Help string printed when pressing "h"/"?". More... | |
Friends | |
| class | internals::Thread |
| !! private: More... | |
Provide a framework wrapping window+interactor+renderers from vtk.
A frame contains a grid of subframes. Each subframe can contain several overlapping figures.
|
static |
Create smart pointer to frame.
| void vtkfig::Frame::SetLayout | ( | int | nvpx, |
| int | nvpy | ||
| ) |
Set layout of subframe grid.
| nvpx | number of rows |
| nvpy | number of columns |
| void vtkfig::Frame::RefreshState | ( | int | figurepos | ) |
Refresh frame state for figure.
| void vtkfig::Frame::WritePNG | ( | std::string | fname | ) |
| void vtkfig::Frame::StartVideo | ( | std::string | fname | ) |
Start video recording.
| fname | Video file name |
| void vtkfig::Frame::StopVideo | ( | ) |
Stop video recording.
| void vtkfig::Frame::AddFigure | ( | std::shared_ptr< Figure > | figure | ) |
Add figure at position (0)
| void vtkfig::Frame::AddFigure | ( | std::shared_ptr< Figure > | figure, |
| int | ipos | ||
| ) |
Add figure at position in frame.
| figure | Figure to be added |
| ipos | Number of position in frame grid |
| void vtkfig::Frame::RemoveFigure | ( | std::shared_ptr< Figure > | figure | ) |
Remove figure.
| void vtkfig::Frame::Clear | ( | void | ) |
Remove all figures.
| void vtkfig::Frame::Unmap | ( | ) |
Unmap frame from screen.
| void vtkfig::Frame::LinkCamera | ( | int | ivp, |
| Frame & | frame, | ||
| int | livp | ||
| ) |
Link camera to other camera.
| ivp | number of viewport |
| frame | other frame to be linked with |
| livp | number of link viewport |
|
inline |
Link camera to other camera.
| ivp | number of viewport |
| frame | other frame to be linked with |
| livp | number of link viewport |
Here is the call graph for this function:
|
inline |
Link camera to other camera.
| ivp | number of viewport |
| frame | other frame to be linked with |
| livp | number of link viewport |
Here is the call graph for this function:
|
inline |
Link camera to other frame at default positions.
| frame | other frame to be linked with |
Here is the call graph for this function:
|
inline |
Link camera to other frame at default positions.
| frame | other frame to be linked with |
Here is the call graph for this function:| void vtkfig::Frame::SetSize | ( | int | x, |
| int | y | ||
| ) |
Set frame size in pixels.
| x | Pixels in x direction |
| y | Pixels in y direction |
| void vtkfig::Frame::SetWindowTitle | ( | const std::string | title | ) |
Set window title.
This title will show up in the title bar of the window.
| title | Title |
| void vtkfig::Frame::SetFrameTitle | ( | const std::string | title | ) |
Set Frame title.
This title will show up within the frame
| title | Title |
| void vtkfig::Frame::SetPosition | ( | int | x, |
| int | y | ||
| ) |
Set frame position on screen.
| x | x origin in pixels |
| y | y origin in pixels |
| void vtkfig::Frame::SetSingleSubFrameView | ( | bool | b | ) |
Toggle single/multi view for frame with mutiple figures.
| void vtkfig::Frame::SetActiveSubFrame | ( | int | iframe | ) |
Set active subframe number for editing, single/multiview etc.
| void vtkfig::Frame::SetActiveSubFrameCameraViewAngle | ( | double | angle | ) |
Set view angle for camera in active frame relative to default.
| void vtkfig::Frame::SetActiveSubFrameCameraFocalPoint | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Set focal point for camera in active frame relative to default.
| void vtkfig::Frame::SetActiveSubFrameCameraPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Set view position for camera in active frame relative to default.
| void vtkfig::Frame::Show | ( | ) |
Show frame content and continue.
Without interaction, this triggers a non-blocking run of the event loop. It can be blocked however by the space key.
| void vtkfig::Frame::Interact | ( | ) |
Show frame content and wait for interaction.
This performs a blocking run of the event loop. It can be unblocked however by the space key.
|
static |
Find frame with number.
|
inline |
Subframe position algebra.
| void vtkfig::Frame::SendCommand | ( | std::string | source, |
| internals::Communicator::Command | cmd | ||
| ) |
Blocking send of commands to main thread.
| void vtkfig::Frame::RTInit | ( | ) |
Init title actor.
|
friend |
!! private:
|
staticconstexpr |
Help string printed when pressing "h"/"?".
| int vtkfig::Frame::number_in_frame_list =-1 |
Number of this frame in global frame list.
| std::set<std::shared_ptr<Figure> > vtkfig::Frame::figures |
List of all figures in frame.
| int vtkfig::Frame::nvpx |
Number of viewports in x direction.
| int vtkfig::Frame::nvpy |
Number of viewports in y direction.
| std::vector<SubFrame> vtkfig::Frame::subframes |
List of subframes.
| const double vtkfig::Frame::default_camera_focal_point[3] ={0.65,0.5,0} |
Default camera data.
| int vtkfig::Frame::winsize_x =400 |
window sizes
| struct { ... } vtkfig::Frame::parameter |
Parameters to be passed between threads.
| std::shared_ptr<internals::Thread> vtkfig::Frame::mainthread |
The spinning main thread.
| vtkSmartPointer<vtkRenderWindow> vtkfig::Frame::window |
Window vontaining frame.
| vtkSmartPointer<vtkCornerAnnotation> vtkfig::Frame::title_actor =0 |
Actor for frame title annotation.
| vtkSmartPointer<vtkOggTheoraWriter> vtkfig::Frame::videowriter =0 |
Video writer.
1.8.16