MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
LinearShape1D Class Reference

#include <shape_impl.h>

Inheritance diagram for LinearShape1D:
Collaboration diagram for LinearShape1D:

Public Member Functions

 LinearShape1D (doublereal d0, doublereal d1)
 
 ~LinearShape1D (void)
 
doublereal dGet (doublereal d, doublereal=0.) const
 
std::ostream & Restart (std::ostream &out) const
 
- Public Member Functions inherited from Shape1D
virtual ~Shape1D (void)
 
- Public Member Functions inherited from Shape
virtual ~Shape (void)
 

Protected Attributes

doublereal dShift
 
doublereal dSlope
 

Detailed Description

Definition at line 61 of file shape_impl.h.

Constructor & Destructor Documentation

LinearShape1D::LinearShape1D ( doublereal  d0,
doublereal  d1 
)

Definition at line 148 of file shape.cc.

References NO_OP.

149 : dShift(d0), dSlope(d1)
150 {
151  NO_OP;
152 }
#define NO_OP
Definition: myassert.h:74
doublereal dSlope
Definition: shape_impl.h:64
doublereal dShift
Definition: shape_impl.h:63
LinearShape1D::~LinearShape1D ( void  )

Definition at line 154 of file shape.cc.

References NO_OP.

155 {
156  NO_OP;
157 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

doublereal LinearShape1D::dGet ( doublereal  d,
doublereal  = 0. 
) const
virtual

Implements Shape.

Definition at line 160 of file shape.cc.

References dShift, and dSlope.

161 {
162  return dShift + dSlope*d;
163 }
doublereal dSlope
Definition: shape_impl.h:64
doublereal dShift
Definition: shape_impl.h:63
std::ostream & LinearShape1D::Restart ( std::ostream &  out) const
virtual

Implements Shape.

Definition at line 166 of file shape.cc.

References dShift, and dSlope.

167 {
168  return out << "linear, " << dShift << ", " << dSlope;
169 }
doublereal dSlope
Definition: shape_impl.h:64
doublereal dShift
Definition: shape_impl.h:63

Member Data Documentation

doublereal LinearShape1D::dShift
protected

Definition at line 63 of file shape_impl.h.

Referenced by dGet(), and Restart().

doublereal LinearShape1D::dSlope
protected

Definition at line 64 of file shape_impl.h.

Referenced by dGet(), and Restart().


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