SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
User interface for editing the transform of a component. More...
#include <smtkCoordinateTransformView.h>
Classes | |
class | Internals |
Public Slots | |
void | updateUI () override |
void | onShowCategory () override |
void | valueChanged (smtk::attribute::ItemPtr valItem) override |
void | removeTransform () |
This slot is triggered by the "remove transform" action. More... | |
void | applyTransform () |
This slot is triggered by clicking the Apply button and will immediately run the operation if its parameters are valid. | |
Public Slots inherited from smtk::extension::qtBaseAttributeView | |
virtual void | updateModelAssociation () |
virtual void | valueChanged (smtk::attribute::ItemPtr) |
virtual void | attributeCreated (const smtk::attribute::AttributePtr &) |
Invoke the Signal dummy operation to indicate an attribute has been created. | |
virtual void | attributeChanged (const smtk::attribute::AttributePtr &, std::vector< std::string > items=std::vector< std::string >()) |
Invoke the Signal dummy operation to indicate an attribute has been changed (renamed). | |
virtual void | attributeRemoved (const smtk::attribute::AttributePtr &) |
Invoke the Signal dummy operation to indicate an attribute has been removed. | |
void | showAdvanceLevel (int i) override |
void | enableShowBy (int) override |
void | onInfo () override |
Public Slots inherited from smtk::extension::qtBaseView | |
virtual void | updateUI () |
Have the view update its contents. More... | |
virtual void | childrenResized () |
virtual void | showAdvanceLevelOverlay (bool val) |
virtual void | showAdvanceLevel (int) |
Have the view update its contents based on a new advance level. | |
virtual void | enableShowBy (int) |
virtual void | onInfo () |
Display view information (i.e., help text) | |
virtual void | onShowCategory () |
Public Member Functions | |
smtkTypenameMacro (smtkCoordinateTransformView) | |
smtkCoordinateTransformView (const smtk::view::Information &info) | |
Public Member Functions inherited from smtk::extension::qtBaseAttributeView | |
smtkTypenameMacro (qtBaseAttributeView) | |
qtBaseAttributeView (const smtk::view::Information &info) | |
void | setInitialCategory () override |
When category filtering is requested to be either on by default or is requested to be on permanently, we need to have a mechanism to force the views to display info based on the initial category. More... | |
virtual bool | displayItem (smtk::attribute::ItemPtr) const |
Determines if an item should be displayed. More... | |
virtual bool | displayItemDefinition (const smtk::attribute::ItemDefinitionPtr &) const |
virtual bool | isItemWriteable (const smtk::attribute::ItemPtr &) const |
Determines if an item can be modified. | |
virtual void | getDefinitions (smtk::attribute::DefinitionPtr attDef, QList< smtk::attribute::DefinitionPtr > &defs) |
int | fixedLabelWidth () |
bool | setFixedLabelWidth (int w) |
bool | advanceLevelVisible () |
bool | useSelectionManager () const |
int | advanceLevel () const override |
bool | categoryEnabled () const override |
std::string | currentCategory () const override |
bool | isEmpty () const override |
Return true if the view does not contain any information to display. More... | |
void | setIgnoreCategories (bool mode) |
bool | ignoreCategories () const |
smtk::attribute::ResourcePtr | attributeResource () const |
Return the attribute resource used by this View. | |
Public Member Functions inherited from smtk::extension::qtBaseView | |
smtkTypenameMacro (qtBaseView) | |
qtBaseView (const smtk::view::Information &info) | |
const smtk::view::ConfigurationPtr & | configuration () const |
QWidget * | widget () const |
QWidget * | parentWidget () const |
qtUIManager * | uiManager () const |
const smtk::view::Information & | information () const |
Return the view's specification (its configuration plus environment information). | |
bool | isTopLevel () const |
virtual bool | isValid () const |
Return true if the view's contents are valid. | |
Public Member Functions inherited from smtk::view::BaseView | |
smtkTypenameMacroBase (BaseView) | |
virtual std::size_t | index () const |
index is a compile-time intrinsic of the derived view; as such, it cannot be set. | |
Static Public Member Functions | |
static bool | validateInformation (const smtk::view::Information &info) |
static smtk::extension::qtBaseView * | createViewWidget (const smtk::view::Information &info) |
Static Public Member Functions inherited from smtk::extension::qtBaseAttributeView | |
static bool | validateInformation (const smtk::view::Information &info) |
Static Public Member Functions inherited from smtk::extension::qtBaseView | |
static bool | validateInformation (const smtk::view::Information &info) |
Protected Slots | |
virtual void | requestOperation (const smtk::operation::OperationPtr &op) |
virtual void | treeSelectionChanged () |
virtual void | togglePreview (bool showPreview) |
virtual void | useLandmarkAsFrom () |
Invoked by actions to copy a landmark to one of the operation's inputs: | |
virtual void | useLandmarkAsTo () |
virtual void | userEditedFromFrame () |
Connected to pqSMTKCoordinateFramePropertyWidget::modified to curate operation. | |
virtual void | userEditedToFrame () |
virtual void | associationChanged () |
Connected to qtReferenceItem::modified to curation operation. | |
virtual void | parametersChanged () |
Called when the operation's parameters change in order to enable/disable actions. | |
Protected Slots inherited from smtk::extension::qtBaseAttributeView | |
virtual void | onAdvanceLevelChanged (int levelIdx) |
void | onConfigurationChanged (int levelIdx) |
Protected Member Functions | |
void | createWidget () override |
Creates the main QT Widget that is associated with a View. More... | |
void | setInfoToBeDisplayed () override |
Set the information to be displayed in the ViewInfoDialog. | |
Protected Member Functions inherited from smtk::extension::qtBaseAttributeView | |
void | buildUI () override |
Create the UI related to the view and assigns it to the parent widget. | |
void | makeTopLevel () override |
Adds properties associated with respects to a top level view. | |
bool | checkStatus (const smtk::attribute::Attribute *att) const |
Returns true if |att| is valid. | |
virtual bool | categoryTest (const smtk::attribute::ItemPtr &) const |
Test for category filtering. More... | |
virtual bool | advanceLevelTest (const smtk::attribute::ItemPtr &) const |
Test for advance level filtering. More... | |
void | topLevelPrepCategories (const smtk::view::ConfigurationPtr &view, const smtk::attribute::ResourcePtr &attResource) |
void | topLevelPrepConfigurations (const smtk::view::ConfigurationPtr &view, const smtk::attribute::ResourcePtr &attResource) |
void | topLevelPrepAdvanceLevels (const smtk::view::ConfigurationPtr &view) |
void | prepConfigurationComboBox (const std::string &newConfigurationName) |
void | checkConfigurations (smtk::attribute::ItemPtr &item) |
Additional Inherited Members | |
Signals inherited from smtk::extension::qtBaseAttributeView | |
void | modified (smtk::attribute::ItemPtr) |
Signals inherited from smtk::extension::qtBaseView | |
void | aboutToDestroy () |
void | modified () |
Protected Attributes inherited from smtk::extension::qtBaseAttributeView | |
QScrollArea * | m_ScrollArea |
bool | m_topLevelInitialized |
bool | m_topLevelCanCreateConfigurations { false } |
smtk::attribute::WeakDefinitionPtr | m_topLevelConfigurationDef |
bool | m_ignoreCategories |
std::string | m_addressString |
Protected Attributes inherited from smtk::extension::qtBaseView | |
QWidget * | Widget |
bool | m_isTopLevel |
bool | m_useSelectionManager |
smtk::view::Information | m_viewInfo |
QPointer< qtViewInfoDialog > | m_infoDialog |
bool | m_advOverlayVisible |
User interface for editing the transform of a component.
Transforms are specified by providing a "from" coordinate frame and a "to" coordinate frame. The transform acts by translating the origin to move between the two frames and reorienting the part so axes which were aligned with the source frame are now aligned with the destination frame.
This custom view provides a tree-widget for you to select components to translate. Beneath it is another tree-widget listing freeform coordinate-frame properties present; these may be copied to the "from" or "to" coordinate frames via a context menu item.
The bottom portion of the view allows you to edit the "from" and "to" coordinate frames. When you click "Apply," the transform is saved as a property on the associated components. There is also a drop-down button that allows you to remove the transform from the associated components.
|
overrideprotectedvirtual |
Creates the main QT Widget that is associated with a View.
Typically this is the only method a derived View needs to override.
Reimplemented from smtk::extension::qtBaseView.
|
slot |
This slot is triggered by the "remove transform" action.
It will immediately invoke the operator on the associated items and permanently remove their transforms.