mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3343 Holo Lens : Add export of winding, color and cell set type
This commit is contained in:
@@ -23,19 +23,23 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
VdeExportPart::VdeExportPart(cvf::Part* part)
|
||||
: m_part(part)
|
||||
, m_sourceObjectName("Unnamed Object")
|
||||
, m_sourceObjectType(OBJ_TYPE_UNKNOWN)
|
||||
, m_color(cvf::Color3f::MAGENTA)
|
||||
, m_winding(COUNTERCLOCKWISE)
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setSourceObjectType(SourceObjectType sourceObjectType)
|
||||
{
|
||||
m_sourceObjectType = sourceObjectType;
|
||||
m_sourceObjectType = sourceObjectType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setSourceObjectName(const QString& sourceObjectName)
|
||||
{
|
||||
@@ -43,15 +47,23 @@ void VdeExportPart::setSourceObjectName(const QString& sourceObjectName)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setColor(cvf::Color3ub color)
|
||||
void VdeExportPart::setSourceObjectCellSetType(const QString& sourceObjectCellSetType)
|
||||
{
|
||||
m_sourceObjectCellSetType = sourceObjectCellSetType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setColor(const cvf::Color3f& color)
|
||||
{
|
||||
m_color = color;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void VdeExportPart::setWinding(Winding winding)
|
||||
{
|
||||
@@ -59,7 +71,7 @@ void VdeExportPart::setWinding(Winding winding)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString VdeExportPart::sourceObjectName() const
|
||||
{
|
||||
@@ -67,7 +79,15 @@ QString VdeExportPart::sourceObjectName() const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString VdeExportPart::sourceObjectCellSetType() const
|
||||
{
|
||||
return m_sourceObjectCellSetType;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
VdeExportPart::SourceObjectType VdeExportPart::sourceObjectType() const
|
||||
{
|
||||
@@ -75,7 +95,7 @@ VdeExportPart::SourceObjectType VdeExportPart::sourceObjectType() const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Part* VdeExportPart::part()
|
||||
{
|
||||
@@ -83,9 +103,9 @@ cvf::Part* VdeExportPart::part()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Color3ub VdeExportPart::color() const
|
||||
cvf::Color3f VdeExportPart::color() const
|
||||
{
|
||||
return m_color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user