24 return a.
a == b.
a && a.
b == b.
b;
105 int maxRenderResolutionSide )
const;
116 int maxRenderResolutionSide )
const;
124 struct PickTextureFrameBuffer
126 void resize(
const Vector2i&
size );
128 void bind(
bool read );
130 unsigned int framebuffer_{ 0 };
131 unsigned int colorTexture_{ 0 };
132 unsigned int renderbuffer_{ 0 };
135 mutable PickTextureFrameBuffer pickFBO_;
137 std::vector<PickColor> pickObjectsInRect_(
const PickParameters& params,
const Box2i& rect )
const;
139 bool inited_ =
false;
141 GLuint add_line_colors_vbo = 0;
145 GLuint add_point_colors_vbo = 0;
149 GLuint border_line_vbo = 0;
150 GLuint border_line_vao = 0;
Definition MRViewportGL.h:53
MRVIEWER_API ViewportGL(ViewportGL &&other) noexcept
std::vector< BasePickResult > BasePickResults
Definition MRViewportGL.h:107
unsigned int GLuint
Definition MRViewportGL.h:55
void fillViewport(const Box2f &rect, const Color &color) const
ViewportGL(const ViewportGL &)
Definition MRViewportGL.h:60
float GLfloat
Definition MRViewportGL.h:56
std::vector< PickResult > PickResults
Definition MRViewportGL.h:99
PickResults pickObjects(const PickParameters ¶ms, const std::vector< Vector2i > &picks) const
ViewportGL & operator=(const ViewportGL &)
Definition MRViewportGL.h:61
void drawBorder(const Box2f &rect, const Color &color) const
std::vector< unsigned > findUniqueObjectsInRect(const PickParameters ¶ms, const Box2i &rect, int maxRenderResolutionSide) const
ScaledPickRes pickObjectsInRect(const PickParameters ¶ms, const Box2i &rect, int maxRenderResolutionSide) const
MRMESH_API bool operator==(const BitSet &a, const BitSet &b)
compare that two bit sets have the same set bits (they can be equal even if sizes are distinct but la...
Definition MRCameraOrientationPlugin.h:8
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:32
Common rendering parameters for meshes and UI.
Definition MRIRenderObject.h:33
Definition MRViewportGL.h:18
Vector4f a
Definition MRViewportGL.h:19
Vector4f b
Definition MRViewportGL.h:19
Definition MRViewportGL.h:89
unsigned primId
Definition MRViewportGL.h:91
unsigned geomId
Definition MRViewportGL.h:90
Definition MRViewportGL.h:83
BaseRenderParams baseRenderParams
Definition MRViewportGL.h:85
std::span< VisualObject *const > renderVector
Definition MRViewportGL.h:84
Plane3f clippingPlane
Definition MRViewportGL.h:86
Definition MRViewportGL.h:96
float zBuffer
Definition MRViewportGL.h:97
Definition MRViewportGL.h:109
BasePickResults pickRes
Definition MRViewportGL.h:110
Box2i updatedBox
Definition MRViewportGL.h:111
Definition MRViewportGL.h:41
std::vector< LineSegm3f > lines
Definition MRViewportGL.h:42
std::vector< SegmEndColors > colors
Definition MRViewportGL.h:43
Definition MRViewportGL.h:29
std::vector< Vector3f > points
Definition MRViewportGL.h:30
std::vector< Vector4f > colors
Definition MRViewportGL.h:31