"Fossies" - the Fresh Open Source Software Archive

Member "doc_html/Three/classCGAL_1_1Three_1_1Scene__print__item__interface.html" (8 Nov 2019, 19743 Bytes) of package /linux/misc/CGAL-5.0-doc_html.tar.xz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

\( \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 - Three
CGAL::Three::Scene_print_item_interface Class Referenceabstract

#include <CGAL/Three/Scene_print_item_interface.h>

Definition

An item that wants to print its primitive IDs must derive from this interface.

Public Member Functions

virtual void printPrimitiveId (QPoint, CGAL::Three::Viewer_interface *)=0
 Finds the spot the closest to point and prints the id of the corresponding Primitive (vertex, edge or face).
 
virtual bool printVertexIds () const =0
 Prints all the vertices ids if their number is not too high. More...
 
virtual bool printEdgeIds () const =0
 Prints all the edges ids if their number is not too high. More...
 
virtual bool printFaceIds () const =0
 Prints all the faces ids if their number is not too high. More...
 
virtual void printAllIds ()=0
 Prints all the primitive ids if their number is not too high. More...
 
virtual bool testDisplayId (double, double, double, CGAL::Three::Viewer_interface *) const =0
 Tests if an id should be displayed or not. More...
 
virtual bool shouldDisplayIds (CGAL::Three::Scene_item *test_item) const =0
 Tests if this item should display its ids. More...
 

Member Function Documentation

◆ printAllIds()

virtual void CGAL::Three::Scene_print_item_interface::printAllIds ( )
pure virtual

Prints all the primitive ids if their number is not too high.

The limit is editable in the View menu of the application.

◆ printEdgeIds()

virtual bool CGAL::Three::Scene_print_item_interface::printEdgeIds ( ) const
pure virtual

Prints all the edges ids if their number is not too high.

The limit is editable in the View menu of the application.

Returns
false if the number of ids is too high to be displayed.

◆ printFaceIds()

virtual bool CGAL::Three::Scene_print_item_interface::printFaceIds ( ) const
pure virtual

Prints all the faces ids if their number is not too high.

The limit is editable in the View menu of the application.

Returns
false if the number of ids is too high to be displayed.

◆ printVertexIds()

virtual bool CGAL::Three::Scene_print_item_interface::printVertexIds ( ) const
pure virtual

Prints all the vertices ids if their number is not too high.

The limit is editable in the View menu of the application.

Returns
false if the number of ids is too high to be displayed.

◆ shouldDisplayIds()

virtual bool CGAL::Three::Scene_print_item_interface::shouldDisplayIds ( CGAL::Three::Scene_item test_item) const
pure virtual

Tests if this item should display its ids.

The default behavior is to only display ids of the currently selected item (

See also
mainSelectionIndex()). This function allows to override this behavior.
Parameters
test_itemthe currently tested TextListItem.
Returns
true if this item should display its ids when test_item is tested.

◆ testDisplayId()

virtual bool CGAL::Three::Scene_print_item_interface::testDisplayId ( double  ,
double  ,
double  ,
CGAL::Three::Viewer_interface  
) const
pure virtual

Tests if an id should be displayed or not.

Returns
true if the Id should be displayed
false if the Id should not be displayed (if it is hidden for example)