App: Add getCameraAlignmentDirection() to GeoFeature

This commit is contained in:
Bas Ruigrok
2024-05-12 14:31:09 +02:00
parent 0e24e121eb
commit 4c39b2f2bd
2 changed files with 16 additions and 0 deletions

View File

@@ -209,6 +209,13 @@ void GeoFeature::setMaterialAppearance(const App::Material& material)
Q_UNUSED(material)
}
bool GeoFeature::getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname) const
{
Q_UNUSED(subname)
Q_UNUSED(direction)
return false;
}
#ifdef FC_USE_TNP_FIX
bool GeoFeature::hasMissingElement(const char* subname)
{

View File

@@ -141,6 +141,15 @@ public:
* appearance from an App::Material object.
*/
virtual void setMaterialAppearance(const App::Material& material);
/**
* @brief Virtual function to get the camera alignment direction
*
* Finds a direction to align the camera with.
*
* @return bool whether or not a direction is found.
*/
virtual bool getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname = nullptr) const;
#ifdef FC_USE_TNP_FIX
/** Search sub element using internal cached geometry
*