cisst-saw
Loading...
Searching...
No Matches
prmForceCartesianSet.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4/*
5 Author(s): Rajesh Kumar, Anton Deguet
6 Created on: 2008-03-12
7
8 (C) Copyright 2009-2023 Johns Hopkins University (JHU), All Rights Reserved.
9
10--- begin cisst license - do not edit ---
11
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://www.cisst.org/cisst/license.txt.
15
16--- end cisst license ---
17*/
18
19
24
25
26#ifndef _prmForceCartesianSet_h
27#define _prmForceCartesianSet_h
28
31
32// Always include last
34
37
39{
40 CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
41public:
42
46
47 protected:
53
54 public:
57 ForceMember(0.0),
58 MaskMember(true)
59 {}
60
63 const MaskType & mask):
64 ForceMember(force),
65 MaskMember(mask)
66 {}
67
68 inline void SetAll(double forceSet, bool mask)
69 {
70 ForceMember.SetAll(forceSet);
71 MaskMember.SetAll(mask);
72 }
73
77
79 void ToStream(std::ostream & outputStream) const override;
80
82 void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
83 bool headerOnly = false, const std::string & headerPrefix = "") const override;
84
86 void SerializeRaw(std::ostream & outputStream) const override;
87
89 void DeSerializeRaw(std::istream & inputStream) override;
90
91}; // _prmForceCartesianSet_h
92
93
95
96
97#endif // _prmForceCartesianSet_h
98
Definition prmForceCartesianSet.h:39
prmForceCartesianSet()
Definition prmForceCartesianSet.h:56
prmMotionBase BaseType
Definition prmForceCartesianSet.h:43
void SetAll(double forceSet, bool mask)
Definition prmForceCartesianSet.h:68
CMN_DECLARE_MEMBER_AND_ACCESSORS(MaskType, Mask)
prmForceCartesianSet(const ForceType &force, const MaskType &mask)
Definition prmForceCartesianSet.h:62
void SerializeRaw(std::ostream &outputStream) const override
void ToStreamRaw(std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override
void DeSerializeRaw(std::istream &inputStream) override
void ToStream(std::ostream &outputStream) const override
CMN_DECLARE_MEMBER_AND_ACCESSORS(ForceType, Force)
vctFixedSizeVector< bool, 6 > MaskType
Definition prmForceCartesianSet.h:45
virtual ~prmForceCartesianSet()
vctFixedSizeVector< double, 6 > ForceType
Definition prmForceCartesianSet.h:44
prmMotionBase()
Definition prmMotionBase.h:43
Implementation of a fixed-size vector using template metaprogramming.
Definition vctFixedSizeVector.h:54
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:328
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Declaration of vctFixedSizeVector.