mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
46 lines
999 B
C++
46 lines
999 B
C++
|
|
#pragma once
|
|
|
|
#include "cvfBase.h"
|
|
#include "cvfObject.h"
|
|
#include "cvfVector3.h"
|
|
#include "cvfArray.h"
|
|
#include "cvfBoundingBox.h"
|
|
|
|
namespace cvf {
|
|
class DrawableGeo;
|
|
}
|
|
|
|
|
|
namespace caf {
|
|
|
|
|
|
//==================================================================================================
|
|
//
|
|
//
|
|
//==================================================================================================
|
|
class BoxManipulatorGeometryGenerator : public cvf::Object
|
|
{
|
|
public:
|
|
BoxManipulatorGeometryGenerator();
|
|
~BoxManipulatorGeometryGenerator();
|
|
|
|
void setOrigin(const cvf::Vec3d& origin);
|
|
void setSize(const cvf::Vec3d& size);
|
|
|
|
cvf::ref<cvf::DrawableGeo> createBoundingBoxMeshDrawable();
|
|
|
|
private:
|
|
void calculateArrays();
|
|
|
|
static cvf::ref<cvf::UIntArray> lineIndicesFromQuadVertexArray(const cvf::Vec3fArray* vertexArray);
|
|
|
|
private:
|
|
cvf::Vec3d m_origin;
|
|
cvf::Vec3d m_size;
|
|
|
|
cvf::ref<cvf::Vec3fArray> m_vertices;
|
|
};
|
|
|
|
}
|