CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Friends
FWGeoTopNode Class Reference

#include <Fireworks/Core/interface/FWGeoTopNode.h>

Inheritance diagram for FWGeoTopNode:
FWEveDetectorGeo FWEveOverlap

Public Types

enum  MenuOptions {
  kSetTopNode, kSetTopNodeCam, kVisSelfOff, kVisChldOn,
  kVisChldOff, kApplyChldCol, kApplyChldColRec, kCamera,
  kPrintMaterial, kPrintPath, kPrintShape, kPrintOverlap,
  kOverlapVisibilityMotherOn, kOverlapVisibilityMotherOff
}
 

Public Member Functions

virtual FWGeometryTableViewBasebrowser ()
 
void clearSelection ()
 
 FWGeoTopNode (const char *n="FWGeoTopNode", const char *t="FWGeoTopNode")
 
int getFirstSelectedTableIndex ()
 
virtual void Paint (Option_t *option="")
 
virtual void popupMenu (int x, int y, TGLViewer *)
 
void printSelected ()
 
bool selectPhysicalFromTable (int)
 
virtual
FWGeometryTableManagerBase
tableManager ()
 
virtual void UnHighlighted ()
 
virtual void UnSelected ()
 
virtual ~FWGeoTopNode ()
 

Public Attributes

std::set< TGLPhysicalShape * > fHted
 
std::set< TGLPhysicalShape * > fSted
 
FWGeoTopNodeGLScenem_scene
 

Static Public Attributes

static TGLVector3 s_pickedCamera3DCenter
 
static TGLViewer * s_pickedViewer = 0
 

Protected Member Functions

void ClearSet (std::set< TGLPhysicalShape * > &sset)
 
virtual void ComputeBBox ()
 
void EraseFromSet (std::set< TGLPhysicalShape * > &sset, TGLPhysicalShape *id)
 
void paintShape (Int_t idx, const TGeoHMatrix &nm, bool volumeColor, bool parentNode)
 
void ProcessSelection (TGLSelectRecord &rec, std::set< TGLPhysicalShape * > &sset, TGLPhysicalShape *id)
 
FWPopupMenusetPopupMenu (int iX, int iY, TGLViewer *v, bool)
 
void SetStateOf (TGLPhysicalShape *id)
 
void setupBuffMtx (TBuffer3D &buff, const TGeoHMatrix &mat)
 

Static Protected Member Functions

static UInt_t phyID (int tableIdx)
 
static int tableIdx (TGLPhysicalShape *ps)
 

Private Member Functions

 ClassDef (FWGeoTopNode, 0)
 
 FWGeoTopNode (const FWGeoTopNode &)
 
const FWGeoTopNodeoperator= (const FWGeoTopNode &)
 
UChar_t wrapTransparency (FWGeometryTableManagerBase::NodeInfo &data, bool leafNode)
 

Friends

class FWGeoTopNodeGL
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 41 of file FWGeoTopNode.h.

Member Enumeration Documentation

Enumerator
kSetTopNode 
kSetTopNodeCam 
kVisSelfOff 
kVisChldOn 
kVisChldOff 
kApplyChldCol 
kApplyChldColRec 
kCamera 
kPrintMaterial 
kPrintPath 
kPrintShape 
kPrintOverlap 
kOverlapVisibilityMotherOn 
kOverlapVisibilityMotherOff 

Definition at line 47 of file FWGeoTopNode.h.

Constructor & Destructor Documentation

FWGeoTopNode::FWGeoTopNode ( const char *  n = "FWGeoTopNode",
const char *  t = "FWGeoTopNode" 
)
inline

Definition at line 64 of file FWGeoTopNode.h.

64 {}
virtual FWGeoTopNode::~FWGeoTopNode ( )
inlinevirtual

Definition at line 65 of file FWGeoTopNode.h.

65 {}
FWGeoTopNode::FWGeoTopNode ( const FWGeoTopNode )
private

Member Function Documentation

virtual FWGeometryTableViewBase* FWGeoTopNode::browser ( )
inlinevirtual

Reimplemented in FWEveDetectorGeo, and FWEveOverlap.

Definition at line 71 of file FWGeoTopNode.h.

71 { return 0; }
FWGeoTopNode::ClassDef ( FWGeoTopNode  ,
 
)
private
void FWGeoTopNode::clearSelection ( )
inline

Definition at line 78 of file FWGeoTopNode.h.

References fHted, and fSted.

78 {fHted.clear(); fSted.clear();}
std::set< TGLPhysicalShape * > fSted
Definition: FWGeoTopNode.h:74
std::set< TGLPhysicalShape * > fHted
Definition: FWGeoTopNode.h:73
void FWGeoTopNode::ClearSet ( std::set< TGLPhysicalShape * > &  sset)
protected

Definition at line 71 of file FWGeoTopNode.cc.

void FWGeoTopNode::ComputeBBox ( )
protectedvirtual

Definition at line 223 of file FWGeoTopNode.cc.

void FWGeoTopNode::EraseFromSet ( std::set< TGLPhysicalShape * > &  sset,
TGLPhysicalShape *  id 
)
protected

Definition at line 64 of file FWGeoTopNode.cc.

int FWGeoTopNode::getFirstSelectedTableIndex ( )

Definition at line 207 of file FWGeoTopNode.cc.

const FWGeoTopNode& FWGeoTopNode::operator= ( const FWGeoTopNode )
private
void FWGeoTopNode::Paint ( Option_t *  option = "")
virtual

Reimplemented in FWEveDetectorGeo, and FWEveOverlap.

Definition at line 330 of file FWGeoTopNode.cc.

Referenced by FWEveDetectorGeo::Paint(), and FWEveOverlap::Paint().

void FWGeoTopNode::paintShape ( Int_t  idx,
const TGeoHMatrix &  nm,
bool  volumeColor,
bool  parentNode 
)
protected
UInt_t FWGeoTopNode::phyID ( int  tableIdx)
staticprotected

Definition at line 53 of file FWGeoTopNode.cc.

virtual void FWGeoTopNode::popupMenu ( int  x,
int  y,
TGLViewer *   
)
inlinevirtual

Reimplemented in FWEveDetectorGeo, and FWEveOverlap.

Definition at line 81 of file FWGeoTopNode.h.

Referenced by FWGeoTopNodeGLScene::GeoPopupMenu().

81 {}
void FWGeoTopNode::printSelected ( )

Definition at line 197 of file FWGeoTopNode.cc.

void FWGeoTopNode::ProcessSelection ( TGLSelectRecord &  rec,
std::set< TGLPhysicalShape * > &  sset,
TGLPhysicalShape *  id 
)
protected

Definition at line 105 of file FWGeoTopNode.cc.

Referenced by FWGeoTopNodeGL::ProcessSelection().

bool FWGeoTopNode::selectPhysicalFromTable ( int  tableIndex)

Definition at line 178 of file FWGeoTopNode.cc.

FWPopupMenu * FWGeoTopNode::setPopupMenu ( int  iX,
int  iY,
TGLViewer *  v,
bool  overlap 
)
protected

Definition at line 370 of file FWGeoTopNode.cc.

Referenced by FWEveOverlap::popupMenu(), and FWEveDetectorGeo::popupMenu().

void FWGeoTopNode::SetStateOf ( TGLPhysicalShape *  id)
protected

Definition at line 81 of file FWGeoTopNode.cc.

void FWGeoTopNode::setupBuffMtx ( TBuffer3D &  buff,
const TGeoHMatrix &  mat 
)
protected

Definition at line 231 of file FWGeoTopNode.cc.

int FWGeoTopNode::tableIdx ( TGLPhysicalShape *  ps)
staticprotected
virtual FWGeometryTableManagerBase* FWGeoTopNode::tableManager ( )
inlinevirtual

Reimplemented in FWEveDetectorGeo, and FWEveOverlap.

Definition at line 70 of file FWGeoTopNode.h.

70 { return 0; }
void FWGeoTopNode::UnHighlighted ( )
virtual

Definition at line 361 of file FWGeoTopNode.cc.

void FWGeoTopNode::UnSelected ( )
virtual

Definition at line 353 of file FWGeoTopNode.cc.

UChar_t FWGeoTopNode::wrapTransparency ( FWGeometryTableManagerBase::NodeInfo data,
bool  leafNode 
)
private

Definition at line 417 of file FWGeoTopNode.cc.

Friends And Related Function Documentation

friend class FWGeoTopNodeGL
friend

Definition at line 44 of file FWGeoTopNode.h.

Member Data Documentation

std::set<TGLPhysicalShape*> FWGeoTopNode::fHted
std::set<TGLPhysicalShape*> FWGeoTopNode::fSted

Definition at line 74 of file FWGeoTopNode.h.

Referenced by clearSelection(), and FWGeoTopNodeGL::ProcessSelection().

FWGeoTopNodeGLScene* FWGeoTopNode::m_scene

Definition at line 68 of file FWGeoTopNode.h.

TGLVector3 FWGeoTopNode::s_pickedCamera3DCenter
static

Definition at line 86 of file FWGeoTopNode.h.

TGLViewer * FWGeoTopNode::s_pickedViewer = 0
static

Definition at line 87 of file FWGeoTopNode.h.