OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdMeshAnimation Class Reference

#include <StdMesh.h>

Collaboration diagram for StdMeshAnimation:
[legend]

Public Member Functions

 StdMeshAnimation ()
 
 StdMeshAnimation (const StdMeshAnimation &other)
 
 ~StdMeshAnimation ()
 
StdMeshAnimationoperator= (const StdMeshAnimation &other)
 

Public Attributes

StdCopyStrBuf Name
 
float Length
 

Friends

class StdMeshSkeleton
 
class StdMeshSkeletonLoader
 
class StdMeshInstance
 
class StdMeshInstanceAnimationNode
 

Detailed Description

Definition at line 86 of file StdMesh.h.

Constructor & Destructor Documentation

StdMeshAnimation::StdMeshAnimation ( )
inline

Definition at line 93 of file StdMesh.h.

93 {}
StdMeshAnimation::StdMeshAnimation ( const StdMeshAnimation other)

Definition at line 334 of file StdMesh.cpp.

334  :
335  Name(other.Name), Length(other.Length), Tracks(other.Tracks.size())
336 {
337  // Note that all Tracks are already default-initialized to zero
338  for (unsigned int i = 0; i < Tracks.size(); ++i)
339  if (other.Tracks[i])
340  Tracks[i] = new StdMeshTrack(*other.Tracks[i]);
341 
342  OriginSkeleton = other.OriginSkeleton;
343 }
StdCopyStrBuf Name
Definition: StdMesh.h:99
StdMeshAnimation::~StdMeshAnimation ( )

Definition at line 345 of file StdMesh.cpp.

346 {
347  for (unsigned int i = 0; i < Tracks.size(); ++i)
348  delete Tracks[i];
349 }

Member Function Documentation

StdMeshAnimation & StdMeshAnimation::operator= ( const StdMeshAnimation other)

Definition at line 351 of file StdMesh.cpp.

References Length, and Name.

352 {
353  if (this == &other) return *this;
354 
355  Name = other.Name;
356  Length = other.Length;
357 
358  for (unsigned int i = 0; i < Tracks.size(); ++i)
359  delete Tracks[i];
360 
361  Tracks.resize(other.Tracks.size());
362 
363  for (unsigned int i = 0; i < Tracks.size(); ++i)
364  if (other.Tracks[i])
365  Tracks[i] = new StdMeshTrack(*other.Tracks[i]);
366 
367  return *this;
368 }
StdCopyStrBuf Name
Definition: StdMesh.h:99

Friends And Related Function Documentation

friend class StdMeshInstance
friend

Definition at line 90 of file StdMesh.h.

friend class StdMeshInstanceAnimationNode
friend

Definition at line 91 of file StdMesh.h.

friend class StdMeshSkeleton
friend

Definition at line 88 of file StdMesh.h.

friend class StdMeshSkeletonLoader
friend

Definition at line 89 of file StdMesh.h.

Member Data Documentation


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