suanPan
Loading...
Searching...
No Matches
Rotation3D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
28#ifndef ROTATION3D_H
29#define ROTATION3D_H
30
32
33class Rotation3D final : public Material3D {
34 const unsigned mat_tag;
35
36 unique_ptr<Material> mat_obj;
37
38 mat trans_mat;
39
40 void form_transformation(mat&&);
41
42public:
43 Rotation3D(unsigned, // tag
44 unsigned, // mat tag
45 double, // rotation vector
46 double, // rotation vector
47 double // rotation vector
48 );
49 Rotation3D(unsigned, // tag
50 unsigned, // mat tag
51 mat&&);
52 Rotation3D(const Rotation3D&);
54 Rotation3D& operator=(const Rotation3D&) = delete;
56 ~Rotation3D() override = default;
57
58 int initialize(const shared_ptr<DomainBase>&) override;
59
60 unique_ptr<Material> get_copy() override;
61
62 int update_trial_status(const vec&) override;
63
64 int clear_status() override;
65 int commit_status() override;
66 int reset_status() override;
67
68 vector<vec> record(OutputType) override;
69};
70
71#endif
72
OutputType
Definition: OutputType.h:21
The Material3D class.
Definition: Material3D.h:37
A Rotation3D material class.
Definition: Rotation3D.h:33
unique_ptr< Material > get_copy() override
Definition: Rotation3D.cpp:100
int clear_status() override
Definition: Rotation3D.cpp:115
Rotation3D & operator=(const Rotation3D &)=delete
int update_trial_status(const vec &) override
Definition: Rotation3D.cpp:102
int reset_status() override
Definition: Rotation3D.cpp:131
int commit_status() override
Definition: Rotation3D.cpp:124
Rotation3D & operator=(Rotation3D &&)=delete
Rotation3D(Rotation3D &&)=delete
vector< vec > record(OutputType) override
Definition: Rotation3D.cpp:138
int initialize(const shared_ptr< DomainBase > &) override
Definition: Rotation3D.cpp:85
~Rotation3D() override=default