\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 5.0.2 - Three
CGAL::Three::Scene_draw_interface Class Referenceabstract

#include <CGAL/Three/Scene_draw_interface.h>

Inherited by Scene.

Definition

Base class to interact with the scene from the viewer.

Public Member Functions

virtual void initializeGL (CGAL::Three::Viewer_interface *)=0
 Is called by Viewer::initializeGL(). More...
 
virtual void draw (CGAL::Three::Viewer_interface *)=0
 Draws the items. More...
 
virtual void drawWithNames (CGAL::Three::Viewer_interface *)=0
 draws the scene in a hidden frame to perform picking. More...
 
virtual void setPickedPixel (const QPoint &e)=0
 Pick the point e on the screen.
 
virtual bool keyPressEvent (QKeyEvent *e)=0
 Manages the key events. More...
 
virtual void printPrimitiveId (QPoint point, CGAL::Three::Viewer_interface *)=0
 print theTextItems.
 
virtual void updatePrimitiveIds (CGAL::Three::Scene_item *)=0
 update theTextItems.
 
virtual bool testDisplayId (double x, double y, double z, CGAL::Three::Viewer_interface *viewer)=0
 checks if the text at position (x,y,z) is visible or not. More...
 
virtual void printVertexIds ()=0
 displays all the vertices ids if there are less than max_textItems.
 
virtual void printEdgeIds ()=0
 displays all the edges ids if there are less than max_textItems.
 
virtual void printFaceIds ()=0
 displays all the faces ids if there are less than max_textItems.
 
virtual void printAllIds ()=0
 displays all the primitive ids if there are less than max_textItems.
 
virtual void zoomToPosition (QPoint point, CGAL::Three::Viewer_interface *viewer)=0
 moves the camera orthogonally to the picked sface. More...
 

Member Function Documentation

◆ draw()

virtual void CGAL::Three::Scene_draw_interface::draw ( CGAL::Three::Viewer_interface )
pure virtual

Draws the items.

It is called by Viewer::draw().

◆ drawWithNames()

virtual void CGAL::Three::Scene_draw_interface::drawWithNames ( CGAL::Three::Viewer_interface )
pure virtual

draws the scene in a hidden frame to perform picking.

Is called by Viewer::drawWithNames().

◆ initializeGL()

virtual void CGAL::Three::Scene_draw_interface::initializeGL ( CGAL::Three::Viewer_interface )
pure virtual

Is called by Viewer::initializeGL().

Allows all the initialization of OpenGL code that needs a context.

◆ keyPressEvent()

virtual bool CGAL::Three::Scene_draw_interface::keyPressEvent ( QKeyEvent *  e)
pure virtual

Manages the key events.

Override this function to perform actions when keys are pressed.

Returns
true if the keyEvent executed well.

◆ testDisplayId()

virtual bool CGAL::Three::Scene_draw_interface::testDisplayId ( double  x,
double  y,
double  z,
CGAL::Three::Viewer_interface viewer 
)
pure virtual

checks if the text at position (x,y,z) is visible or not.

Parameters
xthe X coordinate of theTextItem's position.
ythe Y coordinate of theTextItem's position.
zthe Z coordinate of theTextItem's position.
viewerthe viewer used to display the Scene.
Returns
true if the TextItem is visible.

◆ zoomToPosition()

virtual void CGAL::Three::Scene_draw_interface::zoomToPosition ( QPoint  point,
CGAL::Three::Viewer_interface viewer 
)
pure virtual

moves the camera orthogonally to the picked sface.

Parameters
pointthe picked point
viewerthe active viewer