Workspace 6.21.5
Public Types | Public Member Functions | List of all members
PickedItem Class Reference

Represents an item that has been 'picked' (interactively selected) in a scene. More...

#include <Rendering/SceneInteraction/pickeditem.h>

Public Types

enum class  GlyphTargetType { Node , Element }
 
enum  PickType { RegionPick , NamePick }
 

Public Member Functions

 PickedItem ()
 
 PickedItem (const QString &modelId, const QString &itemName, const QString &opIdPath, const Mesh::Vector3d &pickWorldCoords, const Mesh::TransformMatrix &worldTransform, const Mesh::BoundingBox &worldBoundingBox, Mesh::MeshModelLibrary &library, bool isSymbol=false, PickType type=RegionPick)
 
unsigned getElementIndex () const
 
const QString & getItemName () const
 
Mesh::MeshModelLibrarygetMeshModelLibrary () const
 
const QString & getModelId () const
 
const QString & getOpIdPath () const
 
PickType getPickType () const
 
const Mesh::Vector3dgetPickWorldCoords () const
 
const QDateTime & getTimeOfPick () const
 
const Mesh::BoundingBoxMinimalgetWorldBoundingBox () const
 
const Mesh::TransformMatrixgetWorldTransform () const
 
bool isGlyph () const
 
bool isSymbol () const
 
bool isValid () const
 
void setElementIndex (unsigned index)
 
void setIsGlyph (bool b, GlyphTargetType targetType)
 

Detailed Description

This class represents a selected item in a scene. It contains just enough information to allow Scene visualisation widgets to display information or perform actions on the specific item.

Note
The item contains absolutely no information specific to one renderer type (e.g. it does not contain any WSGLWidget-specific information).

Member Enumeration Documentation

◆ GlyphTargetType

enum class GlyphTargetType
strong
Enumerator
Node 
Element 

◆ PickType

enum PickType
Enumerator
RegionPick 
NamePick 

Constructor & Destructor Documentation

◆ PickedItem() [1/2]

PickedItem ( )
inline

◆ PickedItem() [2/2]

PickedItem ( const QString &  modelId,
const QString &  itemName,
const QString &  opIdPath,
const Mesh::Vector3d pickWorldCoords,
const Mesh::TransformMatrix worldTransform,
const Mesh::BoundingBox worldBoundingBox,
Mesh::MeshModelLibrary library,
bool  isSymbol = false,
PickType  type = RegionPick 
)
inline

Member Function Documentation

◆ getElementIndex()

unsigned getElementIndex ( ) const
inline

◆ getItemName()

const QString & getItemName ( ) const
inline

◆ getMeshModelLibrary()

Mesh::MeshModelLibrary & getMeshModelLibrary ( ) const
inline

◆ getModelId()

const QString & getModelId ( ) const
inline

◆ getOpIdPath()

const QString & getOpIdPath ( ) const
inline

◆ getPickType()

PickType getPickType ( ) const
inline

◆ getPickWorldCoords()

const Mesh::Vector3d & getPickWorldCoords ( ) const
inline

◆ getTimeOfPick()

const QDateTime & getTimeOfPick ( ) const
inline

◆ getWorldBoundingBox()

const Mesh::BoundingBoxMinimal & getWorldBoundingBox ( ) const
inline

◆ getWorldTransform()

const Mesh::TransformMatrix & getWorldTransform ( ) const
inline

◆ isGlyph()

bool isGlyph ( ) const
inline

◆ isSymbol()

bool isSymbol ( ) const
inline

◆ isValid()

bool isValid ( ) const
inline

◆ setElementIndex()

void setElementIndex ( unsigned  index)
inline

◆ setIsGlyph()

void setIsGlyph ( bool  b,
GlyphTargetType  targetType 
)
inline