ATLAS Offline Software
Loading...
Searching...
No Matches
AssociatedObjectHandleBase Class Referenceabstract

#include <AssociatedObjectHandleBase.h>

Inheritance diagram for AssociatedObjectHandleBase:
Collaboration diagram for AssociatedObjectHandleBase:

Classes

class  Imp

Public Types

enum  PICKSTYLE { UNPICKABLE , ALL , COMPONENTS }

Public Member Functions

 AssociatedObjectHandleBase (TrackHandleBase *)
virtual QStringList clicked ()=0
virtual TrackCommonFlags::TSOSPartsFlags parts () const
virtual unsigned nParts () const
bool hasParameters () const
bool hasParError () const
bool hasError () const
bool hasMaterialEffect () const
bool hasSurface () const
bool hasMeasurement () const
TrackSysCommonDatacommon () const
void setPickable (PICKSTYLE)
PICKSTYLE pickStyle () const
virtual void setVisible (bool)
bool visible () const
void toggleVisible ()
TrackHandleBasetrackHandle () const
void update3DObjects ()
SoSeparator * shapeSimple () const
SoSeparator * shapeDetailed () const
virtual bool initiatesOwnZooms () const

Static Public Member Functions

static int numberOfInstances ()

Protected Member Functions

virtual void buildShapes (SoSeparator *&shape_simple, SoSeparator *&shape_detailed)=0
virtual int regionIndex () const
virtual double lodCrossOverValue () const
virtual ~AssociatedObjectHandleBase ()

Private Member Functions

 AssociatedObjectHandleBase (const AssociatedObjectHandleBase &)
AssociatedObjectHandleBaseoperator= (const AssociatedObjectHandleBase &)
void registerShapes (SoSeparator *simple, SoSeparator *detailed)
void unregisterShapes (SoSeparator *simple, SoSeparator *detailed)
AssocObjAttachmentHandlegetAttachmentHandle ()

Private Attributes

Impm_d
TrackHandleBasem_trackHandle
bool m_visible
PICKSTYLE m_pickStyle

Friends

class TrackHandleBase

Detailed Description

Definition at line 35 of file AssociatedObjectHandleBase.h.

Member Enumeration Documentation

◆ PICKSTYLE

Constructor & Destructor Documentation

◆ AssociatedObjectHandleBase() [1/2]

◆ AssociatedObjectHandleBase() [2/2]

AssociatedObjectHandleBase::AssociatedObjectHandleBase ( const AssociatedObjectHandleBase & )
private

◆ ~AssociatedObjectHandleBase()

AssociatedObjectHandleBase::~AssociatedObjectHandleBase ( )
protectedvirtual

Definition at line 118 of file AssociatedObjectHandleBase.cxx.

119{
120 if (m_d->attachhandle&&m_visible&&m_d->sep_simple&&m_d->sep_detailed) {
121 m_d->attachhandle->detachNodes(m_d->sep_simple,m_d->sep_detailed);
122 }
123 m_d->ensureShapesErased(this );
124 delete m_d;
126
127}

Member Function Documentation

◆ buildShapes()

virtual void AssociatedObjectHandleBase::buildShapes ( SoSeparator *& shape_simple,
SoSeparator *& shape_detailed )
protectedpure virtual

◆ clicked()

virtual QStringList AssociatedObjectHandleBase::clicked ( )
pure virtual

◆ common()

TrackSysCommonData * AssociatedObjectHandleBase::common ( ) const

Definition at line 105 of file AssociatedObjectHandleBase.cxx.

106{
107 return m_trackHandle->common();
108}

◆ getAttachmentHandle()

AssocObjAttachmentHandle * AssociatedObjectHandleBase::getAttachmentHandle ( )
private

Definition at line 155 of file AssociatedObjectHandleBase.cxx.

156{
157 return m_trackHandle->getAttachmentHandle(regionIndex(), lodCrossOverValue());
158}
virtual double lodCrossOverValue() const

◆ hasError()

bool AssociatedObjectHandleBase::hasError ( ) const
inline

Definition at line 50 of file AssociatedObjectHandleBase.h.

virtual TrackCommonFlags::TSOSPartsFlags parts() const

◆ hasMaterialEffect()

bool AssociatedObjectHandleBase::hasMaterialEffect ( ) const
inline

◆ hasMeasurement()

bool AssociatedObjectHandleBase::hasMeasurement ( ) const
inline

◆ hasParameters()

bool AssociatedObjectHandleBase::hasParameters ( ) const
inline

Definition at line 48 of file AssociatedObjectHandleBase.h.

◆ hasParError()

bool AssociatedObjectHandleBase::hasParError ( ) const
inline

◆ hasSurface()

bool AssociatedObjectHandleBase::hasSurface ( ) const
inline

◆ initiatesOwnZooms()

virtual bool AssociatedObjectHandleBase::initiatesOwnZooms ( ) const
inlinevirtual

Reimplemented in AscObj_TrackState, and AscObj_TSOS.

Definition at line 71 of file AssociatedObjectHandleBase.h.

71{ return false; }

◆ lodCrossOverValue()

virtual double AssociatedObjectHandleBase::lodCrossOverValue ( ) const
inlineprotectedvirtual

Reimplemented in AscObj_TrackState, AscObj_TruthPoint, and AscObj_TSOS.

Definition at line 82 of file AssociatedObjectHandleBase.h.

82{ return 50*50; };

◆ nParts()

virtual unsigned AssociatedObjectHandleBase::nParts ( ) const
inlinevirtual

Definition at line 47 of file AssociatedObjectHandleBase.h.

47{ return 1; }

◆ numberOfInstances()

int AssociatedObjectHandleBase::numberOfInstances ( )
static

Definition at line 130 of file AssociatedObjectHandleBase.cxx.

131{
132 return Imp::nascobjs;
133}

◆ operator=()

AssociatedObjectHandleBase & AssociatedObjectHandleBase::operator= ( const AssociatedObjectHandleBase & )
private

◆ parts()

virtual TrackCommonFlags::TSOSPartsFlags AssociatedObjectHandleBase::parts ( ) const
inlinevirtual

Reimplemented in AscObj_TrackState, and AscObj_TSOS.

Definition at line 46 of file AssociatedObjectHandleBase.h.

46{ return TrackCommonFlags::TSOSPartsFlags(); }

◆ pickStyle()

PICKSTYLE AssociatedObjectHandleBase::pickStyle ( ) const
inline

Definition at line 59 of file AssociatedObjectHandleBase.h.

59{ return m_pickStyle; }

◆ regionIndex()

virtual int AssociatedObjectHandleBase::regionIndex ( ) const
inlineprotectedvirtual

Reimplemented in AscObj_TrackState, AscObj_TruthPoint, and AscObj_TSOS.

Definition at line 81 of file AssociatedObjectHandleBase.h.

81{ return 0; };

◆ registerShapes()

void AssociatedObjectHandleBase::registerShapes ( SoSeparator * simple,
SoSeparator * detailed )
private

Definition at line 93 of file AssociatedObjectHandleBase.cxx.

94{
95 m_trackHandle->collHandle()->common()->ascObjSelectionManager()->registerAscObj(simple,detailed,this);
96}

◆ setPickable()

void AssociatedObjectHandleBase::setPickable ( PICKSTYLE ps)

Definition at line 136 of file AssociatedObjectHandleBase.cxx.

137{
138 if (m_pickStyle==ps)
139 return;
141
142 //Fixme...
143
144}

◆ setVisible()

void AssociatedObjectHandleBase::setVisible ( bool b)
virtual

Reimplemented in AscObj_TrackState, and AscObj_TSOS.

Definition at line 171 of file AssociatedObjectHandleBase.cxx.

172{
173 if (m_visible==b)
174 return;
175 m_visible=b;
176 if (b) {
177 m_d->ensureShapesBuild(this);
178 m_d->attach(this);
179 } else {
180 m_d->detach();
181 }
182}

◆ shapeDetailed()

SoSeparator * AssociatedObjectHandleBase::shapeDetailed ( ) const

Definition at line 206 of file AssociatedObjectHandleBase.cxx.

207{
208 return m_d->sep_detailed;
209}

◆ shapeSimple()

SoSeparator * AssociatedObjectHandleBase::shapeSimple ( ) const

Definition at line 200 of file AssociatedObjectHandleBase.cxx.

201{
202 return m_d->sep_simple;
203}

◆ toggleVisible()

void AssociatedObjectHandleBase::toggleVisible ( )
inline

Definition at line 62 of file AssociatedObjectHandleBase.h.

◆ trackHandle()

TrackHandleBase * AssociatedObjectHandleBase::trackHandle ( ) const
inline

Definition at line 64 of file AssociatedObjectHandleBase.h.

64{ return m_trackHandle; }

◆ unregisterShapes()

void AssociatedObjectHandleBase::unregisterShapes ( SoSeparator * simple,
SoSeparator * detailed )
private

Definition at line 99 of file AssociatedObjectHandleBase.cxx.

100{
101 m_trackHandle->collHandle()->common()->ascObjSelectionManager()->unregisterAscObj(simple,detailed);
102}

◆ update3DObjects()

void AssociatedObjectHandleBase::update3DObjects ( )

Definition at line 185 of file AssociatedObjectHandleBase.cxx.

186{
187 VP1Msg::messageVerbose("AssociatedObjectHandleBase update3DObjects.");
188
189 if (m_visible) {
190 m_d->detach();
191 m_d->ensureShapesErased(this);
192 m_d->ensureShapesBuild(this);
193 m_d->attach(this);
194 } else {
195 m_d->ensureShapesErased(this);
196 }
197}
static void messageVerbose(const QString &)
Definition VP1Msg.cxx:84

◆ visible()

bool AssociatedObjectHandleBase::visible ( ) const
inline

Definition at line 61 of file AssociatedObjectHandleBase.h.

61{ return m_visible; }

◆ TrackHandleBase

friend class TrackHandleBase
friend

Definition at line 101 of file AssociatedObjectHandleBase.h.

Member Data Documentation

◆ m_d

Imp* AssociatedObjectHandleBase::m_d
private

Definition at line 91 of file AssociatedObjectHandleBase.h.

◆ m_pickStyle

PICKSTYLE AssociatedObjectHandleBase::m_pickStyle
private

Definition at line 95 of file AssociatedObjectHandleBase.h.

◆ m_trackHandle

TrackHandleBase* AssociatedObjectHandleBase::m_trackHandle
private

Definition at line 93 of file AssociatedObjectHandleBase.h.

◆ m_visible

bool AssociatedObjectHandleBase::m_visible
private

Definition at line 94 of file AssociatedObjectHandleBase.h.


The documentation for this class was generated from the following files: