Nebula
Loading...
Searching...
No Matches
transformnode.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include "modelnode.h"
11#include "math/quat.h"
12namespace Models
13{
15{
16public:
20 virtual ~TransformNode();
21
23 void GetLODDistances(float& minDistance, float& maxDistance);
24
25protected:
26 friend class ModelLoader;
27 friend class ModelContext;
28
30 virtual bool Load(const Util::FourCC& fourcc, const Util::StringAtom& tag, const Ptr<IO::BinaryReader>& reader, bool immediate) override;
31
42};
43
44} // namespace Models
Definition modelcontext.h:58
Definition modelloader.h:27
Definition modelnode.h:54
Util::StringAtom tag
Definition modelnode.h:110
Definition transformnode.h:15
Math::vec3 scalePivot
Definition transformnode.h:36
bool isInViewSpace
Definition transformnode.h:37
float minDistance
Definition transformnode.h:38
void GetLODDistances(float &minDistance, float &maxDistance)
Get LOD distances.
Definition transformnode.cc:43
bool useLodDistances
Definition transformnode.h:40
Math::vec3 position
Definition transformnode.h:32
Math::vec3 rotatePivot
Definition transformnode.h:35
Math::quat rotate
Definition transformnode.h:33
Math::vec3 scale
Definition transformnode.h:34
bool lockedToViewer
Definition transformnode.h:41
float maxDistance
Definition transformnode.h:39
TransformNode()
constructor
Definition transformnode.cc:15
virtual ~TransformNode()
destructor
Definition transformnode.cc:34
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
A four-character-code is a quasi-human-readable 32-bit-id.
Definition fourcc.h:19
A StringAtom.
Definition stringatom.h:22
A model resource consists of nodes, each of which inhibit some information read from an ....
Definition model.cc:10
A quaternion is usually used to represent an orientation in 3D space.
Definition quat.h:30
A 3D vector.
Definition vec3.h:40