App: Add getCameraAlignmentDirection() to GeoFeature
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user