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

#include <C4MeshAnimation.h>

Inheritance diagram for C4ValueProviderConst:
[legend]
Collaboration diagram for C4ValueProviderConst:
[legend]

Public Member Functions

 C4ValueProviderConst ()
 
 C4ValueProviderConst (C4Real value)
 
virtual bool Execute ()
 
virtual void CompileFunc (StdCompiler *pComp)
 
virtual void DenumeratePointers ()
 
virtual void ClearPointers (class C4Object *pObj)
 

Static Public Member Functions

static const IDBaseLookup (const char *name)
 
static const IDBaseLookup (const std::type_info &type)
 

Public Attributes

C4Real Value
 

Detailed Description

Definition at line 54 of file C4MeshAnimation.h.

Constructor & Destructor Documentation

C4ValueProviderConst::C4ValueProviderConst ( )
inline

Definition at line 57 of file C4MeshAnimation.h.

57 {}
C4ValueProviderConst::C4ValueProviderConst ( C4Real  value)

Definition at line 140 of file C4MeshAnimation.cpp.

References StdMeshInstanceValueProvider::Value.

141 {
142  Value = value;
143 }

Member Function Documentation

virtual void StdMeshInstance::SerializableValueProvider::ClearPointers ( class C4Object pObj)
inlinevirtualinherited

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, and C4ValueProviderX.

Definition at line 482 of file StdMesh.h.

Referenced by StdMeshInstanceAnimationNode::ClearPointers().

482 {}

Here is the caller graph for this function:

void StdMeshInstance::SerializableValueProvider::CompileFunc ( StdCompiler pComp)
virtualinherited

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, C4ValueProviderX, and C4ValueProviderLinear.

Definition at line 790 of file StdMesh.cpp.

References StdCompiler::Value(), and StdMeshInstanceValueProvider::Value.

791 {
792  pComp->Value(Value);
793 }
void Value(const T &rStruct)
Definition: StdCompiler.h:171

Here is the call graph for this function:

virtual void StdMeshInstance::SerializableValueProvider::DenumeratePointers ( )
inlinevirtualinherited

Reimplemented in C4ValueProviderAction, C4ValueProviderSinV, C4ValueProviderCosV, C4ValueProviderSinR, C4ValueProviderCosR, C4ValueProviderAbsRDir, C4ValueProviderRDir, C4ValueProviderYDir, C4ValueProviderXDir, C4ValueProviderDist, C4ValueProviderAbsY, C4ValueProviderAbsX, C4ValueProviderR, C4ValueProviderY, and C4ValueProviderX.

Definition at line 481 of file StdMesh.h.

Referenced by StdMeshInstanceAnimationNode::DenumeratePointers().

481 {}

Here is the caller graph for this function:

bool C4ValueProviderConst::Execute ( )
virtual

Implements StdMeshInstanceValueProvider.

Definition at line 145 of file C4MeshAnimation.cpp.

146 {
147  // Keep value we set in ctor
148  return true;
149 }
static const IDBase* StdMeshInstance::SerializableValueProvider::Lookup ( const char *  name)
inlinestaticinherited

Definition at line 462 of file StdMesh.h.

463  {
464  if(!IDs) return nullptr;
465  for(unsigned int i = 0; i < IDs->size(); ++i)
466  if(strcmp((*IDs)[i]->name, name) == 0)
467  return (*IDs)[i];
468  return nullptr;
469  }
static const IDBase* StdMeshInstance::SerializableValueProvider::Lookup ( const std::type_info &  type)
inlinestaticinherited

Definition at line 471 of file StdMesh.h.

472  {
473  if(!IDs) return nullptr;
474  for(unsigned int i = 0; i < IDs->size(); ++i)
475  if((*IDs)[i]->type == type)
476  return (*IDs)[i];
477  return nullptr;
478  }

Member Data Documentation


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