VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
RootGM
include
RootGM
solids
ScaledSolid.h
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The RootGM package of the Virtual Geometry Model
5
// Copyright (C) 2007 - 2017, Ivana Hrivnacova
6
// All rights reserved.
7
//
8
// For the licensing terms see vgm/LICENSE.
9
// Contact: ivana@ipno.in2p3.fr
10
// -----------------------------------------------------------------------
11
13
//
19
20
#ifndef ROOT_GM_SCALED_SOLID_H
21
#define ROOT_GM_SCALED_SOLID_H
22
23
#include "
VGM/common/Transform.h
"
24
25
#include "
BaseVGM/solids/VScaledSolid.h
"
26
27
class
TGeoShape;
28
class
TGeoScaledShape;
29
class
TGeoScale;
30
31
namespace
RootGM
{
32
33
class
ScaledSolid
:
public
BaseVGM::VScaledSolid
34
{
35
public
:
36
ScaledSolid
(
const
std::string& name,
VGM::ISolid
* solid, TGeoScale* scale);
37
ScaledSolid
(TGeoScaledShape* scaledShape);
38
virtual
~ScaledSolid
();
39
40
// methods
41
virtual
std::string
Name
()
const
;
42
43
virtual
VGM::ISolid
*
ConstituentSolid
()
const
;
44
virtual
VGM::Transform
Scale
()
const
;
45
virtual
bool
ToBeReflected
()
const
;
46
47
protected
:
48
ScaledSolid
();
49
ScaledSolid
(
const
ScaledSolid
& rhs);
50
51
private
:
52
TGeoScaledShape* fScaledShape;
53
};
54
55
}
// namespace RootGM
56
57
inline
bool
RootGM::ScaledSolid::ToBeReflected
()
const
{
return
false
; }
58
59
#endif
// ROOT_GM_SCALED_SOLID_H
Transform.h
VScaledSolid.h
BaseVGM::VScaledSolid
The ABC for Scaled solids.
Definition
VScaledSolid.h:30
RootGM::ScaledSolid::ConstituentSolid
virtual VGM::ISolid * ConstituentSolid() const
Return the constituent solid.
Definition
ScaledSolid.cxx:90
RootGM::ScaledSolid::ScaledSolid
ScaledSolid()
Definition
ScaledSolid.cxx:57
RootGM::ScaledSolid::Scale
virtual VGM::Transform Scale() const
Return the 3D scale.
Definition
ScaledSolid.cxx:102
RootGM::ScaledSolid::ToBeReflected
virtual bool ToBeReflected() const
Return true if the solid has to be first reflected before being placed.
Definition
ScaledSolid.h:57
RootGM::ScaledSolid::Name
virtual std::string Name() const
Return the name of this solid.
Definition
ScaledSolid.cxx:81
RootGM::ScaledSolid::~ScaledSolid
virtual ~ScaledSolid()
Definition
ScaledSolid.cxx:71
RootGM::ScaledSolid::ScaledSolid
ScaledSolid(const std::string &name, VGM::ISolid *solid, TGeoScale *scale)
Definition
ScaledSolid.cxx:27
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
RootGM
VGM implementation for Root.
Definition
axis.h:28
VGM::Transform
std::vector< double > Transform
Definition
Transform.h:40
Generated on
for VGM by
1.17.0