Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11221548
BoundSurface.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
BoundSurface.h
View Options
#ifndef Geom_BoundSurface_H
#define Geom_BoundSurface_H
#include
<memory>
#include
"Geometry/Surface/interface/Surface.h"
#include
"Geometry/Surface/interface/Bounds.h"
//#include "Utilities/GenUtil/interface/own_ptr.h"
/** Adds Bounds to Surface.
* Surfaces which differ only by
* the shape of their bounds are of the same "surface" type
* (e.g. Plane or Cylinder).
*/
class
BoundSurface
:
public
virtual
Surface
{
public
:
BoundSurface
(
const
PositionType
&
pos
,
const
RotationType
&
rot
,
const
Bounds
*
bounds
)
:
Surface
(
pos
,
rot
),
theBounds
(
bounds
->
clone
())
{}
BoundSurface
(
const
PositionType
&
pos
,
const
RotationType
&
rot
,
const
Bounds
&
bounds
)
:
Surface
(
pos
,
rot
),
theBounds
(
bounds
.
clone
())
{}
BoundSurface
(
const
BoundSurface
&
iToCopy
)
:
Surface
(
iToCopy
),
theBounds
(
iToCopy
.
theBounds
->
clone
()
)
{}
const
BoundSurface
&
operator
=
(
const
BoundSurface
&
iRHS
)
{
theBounds
=
std
::
auto_ptr
<
Bounds
>
(
iRHS
.
theBounds
->
clone
()
);
return
*
this
;
}
const
Bounds
&
bounds
()
const
{
return
*
theBounds
;}
private
:
//own_ptr<Bounds,OwnerPolicy::Clone> theBounds;
std
::
auto_ptr
<
Bounds
>
theBounds
;
};
#endif
// Geom_BoundSurface_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 10:33 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111180
Default Alt Text
BoundSurface.h (1 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment