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 ()=default
 
 C4ValueProviderConst (C4Real value)
 
bool Execute () override
 
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 ( )
default
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 480 of file StdMesh.h.

Referenced by StdMeshInstanceAnimationNode::ClearPointers().

480 {}

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 780 of file StdMesh.cpp.

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

781 {
782  pComp->Value(Value);
783 }
void Value(const T &rStruct)
Definition: StdCompiler.h:161

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 479 of file StdMesh.h.

Referenced by StdMeshInstanceAnimationNode::DenumeratePointers().

479 {}

Here is the caller graph for this function:

bool C4ValueProviderConst::Execute ( )
overridevirtual

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 460 of file StdMesh.h.

References StdMeshInstance::SerializableValueProvider::IDBase::name.

461  {
462  if(!IDs) return nullptr;
463  for(auto & ID : *IDs)
464  if(strcmp(ID->name, name) == 0)
465  return ID;
466  return nullptr;
467  }
static const IDBase* StdMeshInstance::SerializableValueProvider::Lookup ( const std::type_info &  type)
inlinestaticinherited

Definition at line 469 of file StdMesh.h.

References StdMeshInstance::SerializableValueProvider::IDBase::type.

470  {
471  if(!IDs) return nullptr;
472  for(auto & ID : *IDs)
473  if(ID->type == type)
474  return ID;
475  return nullptr;
476  }

Member Data Documentation


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