Commit 5c12bf67 authored by Jan Möbius's avatar Jan Möbius

Tooltips and some cleanup

parent d1ca0149
......@@ -85,6 +85,8 @@ void PluginAlignMeshes::scaleToUnitCubeNonUniform() {
align::scaleToUnitCubeNonUniform( mesh );
align::moveToCOG( mesh );
emit log(LOGINFO,"Moved Triangle mesh scaleToUnitCubeNonUniform");
} else if(o_it->dataType() == DATA_POLY_MESH) {
PolyMesh& mesh = * PluginFunctions::polyMesh(*o_it);
......@@ -92,7 +94,7 @@ void PluginAlignMeshes::scaleToUnitCubeNonUniform() {
align::moveToCOG( mesh );
align::scaleToUnitCubeNonUniform( mesh );
align::moveToCOG( mesh );
emit log(LOGINFO,"Moved poly mesh scaleToUnitCubeNonUniform");
}
......@@ -114,6 +116,8 @@ void PluginAlignMeshes::scaleToUnitCubeUniform() {
align::scaleToUnitCubeUniform( mesh );
align::moveToCOG( mesh );
emit log(LOGINFO,"Moved Triangle mesh scaleToUnitCubeUniform");
} else if(o_it->dataType() == DATA_POLY_MESH) {
PolyMesh& mesh = * PluginFunctions::polyMesh(*o_it);
......@@ -122,6 +126,7 @@ void PluginAlignMeshes::scaleToUnitCubeUniform() {
align::scaleToUnitCubeUniform( mesh );
align::moveToCOG( mesh );
emit log(LOGINFO,"Moved poly mesh scaleToUnitCubeUniform");
}
emit updatedObject(o_it->id(), UPDATE_GEOMETRY);
......@@ -142,6 +147,8 @@ void PluginAlignMeshes::alignMeshes() {
align::moveToCOG( mesh );
align::rotate( mesh );
emit log(LOGINFO,"Moved Triangle mesh alignMeshes");
} else if(o_it->dataType() == DATA_POLY_MESH) {
PolyMesh& mesh = * PluginFunctions::polyMesh(*o_it);
......@@ -149,6 +156,7 @@ void PluginAlignMeshes::alignMeshes() {
align::moveToCOG( mesh );
align::rotate( mesh );
emit log(LOGINFO,"Moved Poly mesh alignMeshes");
}
emit updatedObject(o_it->id(), UPDATE_GEOMETRY);
......
......@@ -76,11 +76,7 @@ public:
signals:
// BaseInterface
void updateView();
void updatedObject(int, const UpdateType);
void nodeVisibilityChanged(int _identifier);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
// LoggingInterface
void log(Logtype _type, QString _message);
......
......@@ -18,22 +18,49 @@
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QPushButton" name="scaleToUnitCubeUniformButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes &lt;span style=&quot; color:#000000;&quot;&gt;such that their biggest boundingbox axis size is 1.0. The aspect ratio of the mesh is kept.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes &lt;span style=&quot; color:#000000;&quot;&gt;such that their biggest boundingbox axis size is 1.0. The aspect ratio of the mesh is kept.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes &lt;span style=&quot; color:#000000;&quot;&gt;such that their biggest boundingbox axis size is 1.0. The aspect ratio of the mesh is kept.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Scale to Unit Cube Uniformly</string>
<string>Scale Meshes to Unit Cube Uniformly</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="alignMeshesButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Aligns meshes with the unit axis. The plugin analyses the meshes (&lt;span style=&quot; font-weight:600;&quot;&gt;which are marked as target meshes&lt;/span&gt;) and alignes the mesh such the direction of the biggest extend of the mesh is aligned with the x axis and the second largest is aligned to the y axis.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; color:#aa0000;&quot;&gt;If you want to align meshes to each other, select both meshes as target.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Aligns meshes with the unit axis. The plugin analyses the meshes (&lt;span style=&quot; font-weight:600;&quot;&gt;which are marked as target meshes&lt;/span&gt;) and alignes the mesh such the direction of the biggest extend of the mesh is aligned with the x axis and the second largest is aligned to the y axis.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; color:#aa0000;&quot;&gt;If you want to align meshes to each other, select both meshes as target.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Aligns meshes with the unit axis. The plugin analyses the meshes (&lt;span style=&quot; font-weight:600;&quot;&gt;which are marked as target meshes&lt;/span&gt;) and alignes the mesh such the direction of the biggest extend of the mesh is aligned with the x axis and the second largest is aligned to the y axis.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; color:#aa0000;&quot;&gt;If you want to align meshes to each other, select both meshes as target.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Align Meshes</string>
<string>Align Meshes with default axis</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="scaleToUnitCubeNonUniformButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes such that their boundingbox axis sizes are all 1.0. The aspect ratio of the mesh is &lt;span style=&quot; font-weight:600;&quot;&gt;not&lt;/span&gt; kept.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes such that their boundingbox axis sizes are all 1.0. The aspect ratio of the mesh is &lt;span style=&quot; font-weight:600;&quot;&gt;not&lt;/span&gt; kept.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Scale meshes such that their boundingbox axis sizes are all 1.0. The aspect ratio of the mesh is &lt;span style=&quot; font-weight:600;&quot;&gt;not&lt;/span&gt; kept.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Scale to Unit Cube Non-Uniformly</string>
<string>Scale Meshes to Unit Cube Non-Uniformly</string>
</property>
</widget>
</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment