Right-dock vector section / profile view for the selected object.
More...
#include <sectionviewpanel.h>
Right-dock vector section / profile view for the selected object.
◆ Mode
Which drawing is shown for a link. Nodes always draw a profile.
| Enumerator |
|---|
| Section | |
| Profile | |
◆ SectionViewPanel()
| openswmmvis::ui::SectionViewPanel::SectionViewPanel |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~SectionViewPanel()
| openswmmvis::ui::SectionViewPanel::~SectionViewPanel |
( |
| ) |
|
|
overridedefault |
◆ clearSelection()
| void openswmmvis::ui::SectionViewPanel::clearSelection |
( |
| ) |
|
Clear to the "nothing selected" state.
◆ mode()
| Mode openswmmvis::ui::SectionViewPanel::mode |
( |
| ) |
const |
|
inlinenoexcept |
◆ onObjectEditedExternally
| void openswmmvis::ui::SectionViewPanel::onObjectEditedExternally |
( |
const QString & |
name | ) |
|
|
slot |
◆ refresh
| void openswmmvis::ui::SectionViewPanel::refresh |
( |
| ) |
|
|
slot |
Rebuild the current drawing from the engine. Cheap enough to call on every edit: one engine read plus one section sampling.
◆ setMode()
| void openswmmvis::ui::SectionViewPanel::setMode |
( |
Mode |
mode | ) |
|
◆ setProject()
| void openswmmvis::ui::SectionViewPanel::setProject |
( |
SWMMModelLayer * |
layer | ) |
|
Bind to the active project's model layer (nullptr to detach). Idempotent; re-wires the attributeChanged connection safely.
◆ setVerticalExaggeration()
| void openswmmvis::ui::SectionViewPanel::setVerticalExaggeration |
( |
double |
ve | ) |
|
◆ showObject()
| void openswmmvis::ui::SectionViewPanel::showObject |
( |
int |
objectType, |
|
|
const QString & |
name |
|
) |
| |
Show the object identified by objectType (a SWMMObjectRef::ObjectType, passed as int to keep the header free of the selection include) and name. Non-drawable kinds clear the view with an explanatory message.
◆ verticalExaggeration()
| double openswmmvis::ui::SectionViewPanel::verticalExaggeration |
( |
| ) |
const |
|
inlinenoexcept |
Scale (V:H) applied to LINK drawings, for the CURRENT mode: 0 = automatic (fill the pane, ratio stated on the drawing), >0 = an explicit V:H ratio, 1.0 being true shape / true scale. Section and profile keep their own value — a cross-section is only honest at 1:1, while a profile is unreadable there — so switching mode restores that mode's ratio rather than carrying the other one across. Node drawings always fill the pane and ignore this.
The documentation for this class was generated from the following files: