Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::ViewCube Class Reference

#include <viewcube.h>

Inheritance diagram for cil::ViewCube:
cil::Pass cil::Object cil::CornerViewCube cil::FullViewCube cil::MiniViewCube

Public Member Functions

 ViewCube (const std::shared_ptr< Renderer > &renderer, const std::shared_ptr< Image2D > &image, const std::shared_ptr< Vector2i > &coordinate, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize)
 
virtual ~ViewCube ()
 
int hilited () const
 
void setHilited (int hilited)
 
void align (const std::shared_ptr< Camera > &camera, const std::shared_ptr< BoundingBox > &boundingBox, bool animate=false)
 
int hit (int x, int y)
 
void sync (const std::shared_ptr< Camera > &camera)
 
void bind (const std::string &name, std::function< void()> callback)
 
void unbind (const std::string &name)
 
void send (const std::string &name)
 
void setImage (const std::shared_ptr< Image2D > &image)
 
std::shared_ptr< Image2Dimage () const
 
void setBackgroundColor (const Color3f &color)
 
Color3f backgroundColor () const
 
void setTextColor (const Color3f &color)
 
Color3f textColor () const
 
void setHilitedColor (const Color3f &color)
 
Color3f hilitedColor () const
 
void setBorderColor (const Color3f &color)
 
Color3f borderColor () const
 
void setHilitedBorderColor (const Color3f &color)
 
Color3f hilitedBorderColor () const
 
- Public Member Functions inherited from cil::Pass
 Pass ()
 
void update (UpdateMode mode=UpdateMode::All)
 
void updateAsset ()
 
void updateBatch ()
 
void updateTrans ()
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Protected Attributes

std::shared_ptr< Nodem_hilite
 
std::shared_ptr< std::vector< std::shared_ptr< Block > > > m_blocks
 
int m_hilited
 
int m_unhilited
 
std::shared_ptr< Geometrym_blockCube
 
std::shared_ptr< Materialm_faceMaterial
 
std::shared_ptr< FaceSelector< Block > > m_selector
 
std::shared_ptr< Image2Dm_image
 

Additional Inherited Members

- Public Types inherited from cil::Pass
enum class  UpdateMode {
  None = 0 , Asset = 1 , Batch = 2 , Trans = 4 ,
  All = Asset | Batch | Trans
}
 
- Public Attributes inherited from cil::Pass
std::string name
 This memeber stores the name of the pass.
 
bool enabled
 This member indicates whether the pass is currently enabled. Disabled passes are skipped during rendering.
 
std::shared_ptr< Backgroundbackground
 This member holds a shared pointer to a Background object which defines the scene background.
 
std::shared_ptr< Cameracamera
 This member holds a shared pointer to a Camera object which the current pass uses for rendering.
 
std::shared_ptr< Nodenode
 This member holds a shared pointer to a Node object which represents the rendering objects of the current pass.
 
std::shared_ptr< Targettarget
 This member holds a shared pointer to a Target object which stores the rendering results, such as a buffer or texture.
 
int assetVersion
 
int batchVersion
 
int transVersion
 

Constructor & Destructor Documentation

◆ ViewCube()

cil::ViewCube::ViewCube ( const std::shared_ptr< Renderer > & renderer,
const std::shared_ptr< Image2D > & image,
const std::shared_ptr< Vector2i > & coordinate,
const std::shared_ptr< Vector2i > & backgroundSize,
const std::shared_ptr< Vector2i > & windowSize )

◆ ~ViewCube()

virtual cil::ViewCube::~ViewCube ( )
virtual

Member Function Documentation

◆ align()

void cil::ViewCube::align ( const std::shared_ptr< Camera > & camera,
const std::shared_ptr< BoundingBox > & boundingBox,
bool animate = false )

◆ backgroundColor()

Color3f cil::ViewCube::backgroundColor ( ) const

◆ bind()

void cil::ViewCube::bind ( const std::string & name,
std::function< void()> callback )

◆ borderColor()

Color3f cil::ViewCube::borderColor ( ) const

◆ hilited()

int cil::ViewCube::hilited ( ) const

◆ hilitedBorderColor()

Color3f cil::ViewCube::hilitedBorderColor ( ) const

◆ hilitedColor()

Color3f cil::ViewCube::hilitedColor ( ) const

◆ hit()

int cil::ViewCube::hit ( int x,
int y )

◆ image()

std::shared_ptr< Image2D > cil::ViewCube::image ( ) const

◆ send()

void cil::ViewCube::send ( const std::string & name)

◆ setBackgroundColor()

void cil::ViewCube::setBackgroundColor ( const Color3f & color)

◆ setBorderColor()

void cil::ViewCube::setBorderColor ( const Color3f & color)

◆ setHilited()

void cil::ViewCube::setHilited ( int hilited)

◆ setHilitedBorderColor()

void cil::ViewCube::setHilitedBorderColor ( const Color3f & color)

◆ setHilitedColor()

void cil::ViewCube::setHilitedColor ( const Color3f & color)

◆ setImage()

void cil::ViewCube::setImage ( const std::shared_ptr< Image2D > & image)

◆ setTextColor()

void cil::ViewCube::setTextColor ( const Color3f & color)

◆ sync()

void cil::ViewCube::sync ( const std::shared_ptr< Camera > & camera)

◆ textColor()

Color3f cil::ViewCube::textColor ( ) const

◆ unbind()

void cil::ViewCube::unbind ( const std::string & name)

Member Data Documentation

◆ m_blockCube

std::shared_ptr<Geometry> cil::ViewCube::m_blockCube
protected

◆ m_blocks

std::shared_ptr<std::vector<std::shared_ptr<Block> > > cil::ViewCube::m_blocks
protected

◆ m_faceMaterial

std::shared_ptr<Material> cil::ViewCube::m_faceMaterial
protected

◆ m_hilite

std::shared_ptr<Node> cil::ViewCube::m_hilite
protected

◆ m_hilited

int cil::ViewCube::m_hilited
protected

◆ m_image

std::shared_ptr<Image2D> cil::ViewCube::m_image
protected

◆ m_selector

std::shared_ptr<FaceSelector<Block> > cil::ViewCube::m_selector
protected

◆ m_unhilited

int cil::ViewCube::m_unhilited
protected