plLayer& plLayer::InitToDefault() { fState->Reset(); *fTexture = nil; SetRuntimeColor(hsColorRGBA().Set(0.5f, 0.5f, 0.5f, 1.f)); SetPreshadeColor(hsColorRGBA().Set(0.5f, 0.5f, 0.5f, 1.f)); SetAmbientColor(hsColorRGBA().Set(0,0,0,1.f)); SetOpacity(1.f); fTransform->Reset(); SetUVWSrc(0); SetLODBias(-1.f); SetSpecularColor( hsColorRGBA().Set(0,0,0,1.f)); SetSpecularPower(1.f); *fVertexShader = nil; *fPixelShader = nil; fBumpEnvXfm->Reset(); return *this; }
mitk::Material::Material( ) { InitializeStandardValues(); SetColor( GetColor() ); SetColorCoefficient( GetColorCoefficient() ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( GetSpecularCoefficient() ); SetSpecularPower( GetSpecularPower() ); SetOpacity( GetOpacity() ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); }
mitk::Material::Material( mitk::Material::Color color, vtkFloatingPointType colorCoefficient, vtkFloatingPointType specularCoefficient, vtkFloatingPointType specularPower, vtkFloatingPointType opacity ) { InitializeStandardValues(); SetColor( color ); SetColorCoefficient( colorCoefficient ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( specularCoefficient ); SetSpecularPower( specularPower ); SetOpacity( opacity ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); }
mitk::Material::Material( vtkFloatingPointType red, vtkFloatingPointType green, vtkFloatingPointType blue, vtkFloatingPointType opacity ) { InitializeStandardValues(); SetColor( red, green, blue ); SetColorCoefficient( GetColorCoefficient() ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( GetSpecularCoefficient() ); SetSpecularPower( GetSpecularPower() ); SetOpacity( opacity ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); m_Name = ""; }
void Material::Init(ResourceManager * mgr) { resMgr = mgr; data.optionsMask = 0; SetDiffuseColor(Color::White()); SetEmmisivePower(1); SetSpecularPower(3); SetSpecularIntesity(3); diffuseMap = TextureHandler(false); bumpMap = TextureHandler(false); }
mitk::Material::Material( Color color, double opacity ) { InitializeStandardValues(); SetColor( color ); SetColorCoefficient( GetColorCoefficient() ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( GetSpecularCoefficient() ); SetSpecularPower( GetSpecularPower() ); SetOpacity( opacity ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); m_Name = ""; }
mitk::Material::Material( double red, double green, double blue, double colorCoefficient, double specularCoefficient, double specularPower, double opacity ) { InitializeStandardValues(); SetColor( red, green, blue ); SetColorCoefficient( colorCoefficient ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( specularCoefficient ); SetSpecularPower( specularPower ); SetOpacity( opacity ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); m_Name = ""; }
void plLayer::CloneNoTexture( plLayerInterface *original ) { SetBlendFlags( original->GetBlendFlags() ); SetClampFlags( original->GetClampFlags() ); SetShadeFlags( original->GetShadeFlags() ); SetZFlags( original->GetZFlags() ); SetMiscFlags( original->GetMiscFlags() ); SetState( original->GetState() ); SetPreshadeColor( original->GetPreshadeColor() ); SetRuntimeColor( original->GetRuntimeColor() ); SetAmbientColor( original->GetAmbientColor() ); SetSpecularColor( original->GetSpecularColor() ); SetOpacity( original->GetOpacity() ); SetTransform( original->GetTransform() ); SetUVWSrc( original->GetUVWSrc() ); SetLODBias( original->GetLODBias() ); SetSpecularPower( original->GetSpecularPower() ); SetVertexShader( original->GetVertexShader() ); SetPixelShader( original->GetPixelShader() ); SetBumpEnvMatrix( original->GetBumpEnvMatrix() ); }