VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
RootGM
include
RootGM
solids
TessellatedSolid.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, 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_TESSELLATED_SOLID_H
21
#define ROOT_GM_TESSELLATED_SOLID_H
22
23
#include "
BaseVGM/solids/VTessellatedSolid.h
"
24
25
#include <string>
26
#include <vector>
27
28
class
TGeoTessellated;
29
30
namespace
RootGM
{
31
32
class
TessellatedSolid
:
public
BaseVGM::VTessellatedSolid
33
{
34
public
:
35
TessellatedSolid
(
const
std::string& name,
36
std::vector<std::vector<VGM::ThreeVector> > facets);
37
TessellatedSolid
(TGeoTessellated* tessellated);
38
virtual
~TessellatedSolid
();
39
40
// methods
41
virtual
std::string
Name
()
const
;
42
virtual
int
NofFacets
()
const
;
43
virtual
int
NofVertices
(
int
ifacet)
const
;
44
virtual
VGM::ThreeVector
Vertex
(
int
ifacet,
int
index)
const
;
45
46
protected
:
47
TessellatedSolid
();
48
TessellatedSolid
(
const
TessellatedSolid
& rhs);
49
50
private
:
51
// methods
52
void
CheckFacetIndex(
int
ifacet)
const
;
53
void
CheckVertexIndex(
int
ifacet,
int
index)
const
;
54
55
// data members
56
TGeoTessellated* fTessellated;
57
};
58
59
}
// namespace RootGM
60
61
#endif
// ROOT_GM_TESSELLATED_SOLID_H
VTessellatedSolid.h
BaseVGM::VTessellatedSolid
The ABC for tessellated solid.
Definition
VTessellatedSolid.h:30
RootGM::TessellatedSolid::~TessellatedSolid
virtual ~TessellatedSolid()
Definition
TessellatedSolid.cxx:132
RootGM::TessellatedSolid::Vertex
virtual VGM::ThreeVector Vertex(int ifacet, int index) const
Return the index-th vertex in the ifacet-th facet.
Definition
TessellatedSolid.cxx:177
RootGM::TessellatedSolid::Name
virtual std::string Name() const
Return the name of this solid.
Definition
TessellatedSolid.cxx:161
RootGM::TessellatedSolid::NofVertices
virtual int NofVertices(int ifacet) const
Return the number of vertices in the the ifacet-th facet.
Definition
TessellatedSolid.cxx:167
RootGM::TessellatedSolid::TessellatedSolid
TessellatedSolid()
Definition
TessellatedSolid.cxx:115
RootGM::TessellatedSolid::NofFacets
virtual int NofFacets() const
Return the number of facets.
Definition
TessellatedSolid.cxx:164
RootGM::TessellatedSolid::TessellatedSolid
TessellatedSolid(const std::string &name, std::vector< std::vector< VGM::ThreeVector > > facets)
Definition
TessellatedSolid.cxx:34
RootGM
VGM implementation for Root.
Definition
axis.h:28
VGM::ThreeVector
std::vector< double > ThreeVector
Definition
ThreeVector.h:27
Generated on
for VGM by
1.17.0