Back to index

nux  3.0.0
Public Types | Public Member Functions | Protected Attributes | Private Attributes
nux::SliceScaledTextureLayer Class Reference

#include <PaintLayer.h>

Inheritance diagram for nux::SliceScaledTextureLayer:
Inheritance graph
[legend]
Collaboration diagram for nux::SliceScaledTextureLayer:
Collaboration graph
[legend]

List of all members.

Public Types

enum  PaintLayerType {
  PaintLayer_Color, PaintLayer_Shape, PaintLayer_ShapeROP, PaintLayer_Texture,
  PaintLayer_DeviceTexture, PaintLayer_ImageStyle
}

Public Member Functions

 SliceScaledTextureLayer (UXStyleImageRef imageStyle, const Color &color, unsigned long Corners=eAllCorners, bool WriteAlpha=false, const ROPConfig &ROP=ROPConfig::Default)
virtual void Renderlayer (GraphicsEngine &graphics_engine)
virtual AbstractPaintLayerClone () const
virtual void SetGeometry (const Geometry &geo)
void SetModelViewMatrix (const Matrix4 &mat)
 Preserve the model view matrix at the moment layer is pushed on the paint layer stack. See Painter class.
Matrix4 GetModelViewMatrix ()
Geometry const & GetGeometry () const

Protected Attributes

Geometry geometry_
Matrix4 model_view_matrix_

Private Attributes

UXStyleImageRef m_image_style
Color m_color
bool m_write_alpha
ROPConfig m_rop
unsigned long m_corners

Detailed Description

Definition at line 65 of file PaintLayer.h.


Member Enumeration Documentation

Enumerator:
PaintLayer_Color 
PaintLayer_Shape 
PaintLayer_ShapeROP 
PaintLayer_Texture 
PaintLayer_DeviceTexture 
PaintLayer_ImageStyle 

Definition at line 33 of file AbstractPaintLayer.h.


Constructor & Destructor Documentation

nux::SliceScaledTextureLayer::SliceScaledTextureLayer ( UXStyleImageRef  imageStyle,
const Color &  color,
unsigned long  Corners = eAllCorners,
bool  WriteAlpha = false,
const ROPConfig ROP = ROPConfig::Default 
)

Definition at line 109 of file PaintLayer.cpp.

  {
    m_image_style = image_style;
    m_color = color;
    m_write_alpha = write_alpha;
    m_rop = ROP;
    m_corners = corners;
  }

Here is the caller graph for this function:


Member Function Documentation

Implements nux::AbstractPaintLayer.

Definition at line 123 of file PaintLayer.cpp.

  {
    return new SliceScaledTextureLayer(*this);
  }

Here is the call graph for this function:

Geometry const & nux::AbstractPaintLayer::GetGeometry ( ) const [inherited]

Definition at line 22 of file AbstractPaintLayer.cpp.

  {
    return geometry_;
  }

Here is the caller graph for this function:

Definition at line 32 of file AbstractPaintLayer.cpp.

  {
    return model_view_matrix_;
  }

Here is the caller graph for this function:

void nux::SliceScaledTextureLayer::Renderlayer ( GraphicsEngine graphics_engine) [virtual]

Implements nux::AbstractPaintLayer.

Definition at line 118 of file PaintLayer.cpp.

Here is the call graph for this function:

void nux::AbstractPaintLayer::SetGeometry ( const Geometry geo) [virtual, inherited]

Definition at line 17 of file AbstractPaintLayer.cpp.

  {
    geometry_ = geo;
  }

Here is the caller graph for this function:

void nux::AbstractPaintLayer::SetModelViewMatrix ( const Matrix4 mat) [inherited]

Preserve the model view matrix at the moment layer is pushed on the paint layer stack. See Painter class.

Definition at line 27 of file AbstractPaintLayer.cpp.

  {
    model_view_matrix_ = mat;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file AbstractPaintLayer.h.

Definition at line 74 of file PaintLayer.h.

unsigned long nux::SliceScaledTextureLayer::m_corners [private]

Definition at line 77 of file PaintLayer.h.

Definition at line 73 of file PaintLayer.h.

Definition at line 76 of file PaintLayer.h.

Definition at line 75 of file PaintLayer.h.

Definition at line 60 of file AbstractPaintLayer.h.


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