mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3777 Annotations. Use Bounding box to decide whether to draw an object or not
This commit is contained in:
@@ -23,8 +23,11 @@
|
||||
#include "cvfObject.h"
|
||||
#include "cafPdmPointer.h"
|
||||
|
||||
#include <cvfVector3.h>
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
class BoundingBox;
|
||||
class Part;
|
||||
class ModelBasicList;
|
||||
class Transform;
|
||||
@@ -43,18 +46,26 @@ class RimSimWellInViewCollection;
|
||||
|
||||
class RivTextAnnotationPartMgr : public cvf::Object
|
||||
{
|
||||
using Vec3d = cvf::Vec3d;
|
||||
|
||||
public:
|
||||
RivTextAnnotationPartMgr(Rim3dView* view, RimTextAnnotation* annotation);
|
||||
~RivTextAnnotationPartMgr() override;
|
||||
|
||||
void appendDynamicGeometryPartsToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform * displayXf);
|
||||
const caf::DisplayCoordTransform * displayXf,
|
||||
const cvf::BoundingBox& boundingBox);
|
||||
|
||||
private:
|
||||
void buildParts(const caf::DisplayCoordTransform * displayXf,
|
||||
bool doFlatten,
|
||||
double xOffset);
|
||||
|
||||
Vec3d getAnchorPointInDomain(bool snapToPlaneZ, double planeZ);
|
||||
Vec3d getLabelPointInDomain(bool snapToPlaneZ, double planeZ);
|
||||
|
||||
bool isTextInBoundingBox(const cvf::BoundingBox& boundingBox);
|
||||
|
||||
void clearAllGeometry();
|
||||
bool validateAnnotation(const RimTextAnnotation* annotation) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user