Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Visible Class Reference

#include <G4Visible.hh>

Inheritance diagram for G4Visible:
Collaboration diagram for G4Visible:

Public Member Functions

 G4Visible ()
 
 G4Visible (const G4Visible &)
 
 G4Visible (const G4VisAttributes *)
 
virtual ~G4Visible ()
 
G4Visibleoperator= (const G4Visible &)
 
G4bool operator!= (const G4Visible &right) const
 
const G4VisAttributesGetVisAttributes () const
 
void SetVisAttributes (const G4VisAttributes *)
 
void SetVisAttributes (const G4VisAttributes &)
 

Protected Attributes

const G4VisAttributesfpVisAttributes
 
G4bool fAllocatedVisAttributes
 

Friends

std::ostream & operator<< (std::ostream &os, const G4Visible &v)
 

Detailed Description

Definition at line 48 of file G4Visible.hh.

Constructor & Destructor Documentation

G4Visible::G4Visible ( )

Definition at line 37 of file G4Visible.cc.

37  :
38  fpVisAttributes (0),
40 {}
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82
G4Visible::G4Visible ( const G4Visible visible)

Definition at line 42 of file G4Visible.cc.

42  {
46  else fpVisAttributes = visible.fpVisAttributes;
47 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82
G4Visible::G4Visible ( const G4VisAttributes pVA)

Definition at line 49 of file G4Visible.cc.

49  :
50  fpVisAttributes (pVA),
52 {}
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82
G4Visible::~G4Visible ( )
virtual

Definition at line 54 of file G4Visible.cc.

54  {
56 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82

Member Function Documentation

const G4VisAttributes* G4Visible::GetVisAttributes ( ) const

Here is the caller graph for this function:

G4bool G4Visible::operator!= ( const G4Visible right) const

Definition at line 87 of file G4Visible.cc.

87  {
88  if (fpVisAttributes && right.fpVisAttributes)
89  return *fpVisAttributes != *right.fpVisAttributes;
90  else if (!fpVisAttributes && !right.fpVisAttributes) return false;
91  else return true;
92 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4Visible & G4Visible::operator= ( const G4Visible rhs)

Definition at line 58 of file G4Visible.cc.

58  {
59  if (&rhs == this) return *this;
62  delete fpVisAttributes;
64  }
66  return *this;
67 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82

Here is the caller graph for this function:

void G4Visible::SetVisAttributes ( const G4VisAttributes pVA)

Definition at line 80 of file G4Visible.cc.

80  {
81  // First delete any G4VisAttributes already on the heap...
83  fpVisAttributes = pVA;
85 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82

Here is the caller graph for this function:

void G4Visible::SetVisAttributes ( const G4VisAttributes VA)

Definition at line 69 of file G4Visible.cc.

69  {
70  // Allocate G4VisAttributes on the heap in case the user specifies a
71  // short-lived VA for a long-lived G4Visible. Flag so that it can
72  // be deleted in the destructor.
73  // First delete any G4VisAttributes already on the heap...
77 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:82

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4Visible v 
)
friend

Definition at line 94 of file G4Visible.cc.

94  {
95  if (v.fpVisAttributes) return os << *(v.fpVisAttributes);
96  else return os << "No Visualization Attributes";
97 }
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:81

Member Data Documentation

G4bool G4Visible::fAllocatedVisAttributes
protected

Definition at line 82 of file G4Visible.hh.

const G4VisAttributes* G4Visible::fpVisAttributes
protected

Definition at line 81 of file G4Visible.hh.


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