Rhino C++ API  8.14
Public Member Functions | Protected Member Functions | List of all members
CRhinoSdkRenderEx Class Reference

#include <RhinoSdkRender.h>

Inheritance diagram for CRhinoSdkRenderEx:
CRhinoSdkRender CRhinoSdkRenderEx2 CRhinoSdkRenderEx3

Public Member Functions

virtual ~CRhinoSdkRenderEx ()
 
virtual BOOL32 AddRenderMeshToSceneEx (const CRhinoObjRef &ref, const CRhinoMaterial &material, const ON_Mesh *)
 
virtual LRESULT CallBackProc (UINT message, WPARAM wParam, LPARAM lParam)
 
virtual BOOL32 IgnoreRhinoObjectEx (const CRhinoObjRef &ref)
 
virtual LRESULT QuerySdkRenderEx (UINT message, WPARAM wParam, LPARAM lParam)
 
virtual RenderReturnCodes RenderEx (const CRhinoCommandContext &context, LPSIZE sizeImage=0, const wchar_t *lpsWindowTitle=0, UINT nIDResource=0)
 
virtual void RenderReturnCodesToStringEx (RenderReturnCodes code, ON_wString &out) const
 
virtual RenderReturnCodes RenderWindowEx (const CRhinoCommandContext &context, CRhinoView *view, const LPRECT rect, bool bRenderInWindow)
 
- Public Member Functions inherited from CRhinoSdkRender
virtual ~CRhinoSdkRender ()
 
virtual BOOL32 AddLightToScene (const class CRhinoLight &light)
 
virtual BOOL32 AddRenderMeshToScene (const CRhinoObject *object, const CRhinoMaterial &material, const ON_Mesh *)
 
CRhinoDocDocument ()
 
double ElapsedTime (ON_wString &out) const
 
DWORD EndTime () const
 
int ErrorCode () const
 
virtual BOOL32 IgnoreRhinoObject (const CRhinoObject *object)
 
bool InBatchMode () const
 
virtual BOOL32 NeedToProcessGeometryTable ()
 
virtual BOOL32 NeedToProcessLightTable ()
 
virtual class CRhinoSdkRenderFrame * NewRenderFrame (CRhinoDoc *doc)=0
 
void OnRenderFrameDestruction ()
 For internal use only. More...
 
virtual void PauseRendering ()
 
CRhinoRenderPlugInPlugIn () const
 
int ProcessGeometryTable ()
 
int ProcessLightTable ()
 
RenderReturnCodes Render (const CRhinoCommandContext &context, LPSIZE sizeImage=0, const wchar_t *lpsWindowTitle=0, UINT nIDResource=0)
 
virtual BOOL32 RenderContinueModal ()
 
virtual BOOL32 RenderEnterModalLoop ()
 
virtual BOOL32 RenderExitModalLoop ()
 
virtual BOOL32 RenderPreCreateWindow ()
 
void RenderReturnCodesToString (RenderReturnCodes code, ON_wString &out) const
 
virtual BOOL32 RenderSceneWithNoMeshes ()
 
RenderReturnCodes RenderWindow (const CRhinoCommandContext &context, CRhinoView *view, const LPRECT rect, bool bRenderInWindow)
 
virtual void ResumeRendering ()
 
virtual BOOL32 StartRenderingInWindow (CRhinoView *view, const LPCRECT rect)
 
DWORD StartTime () const
 
virtual void StopRendering ()
 
virtual bool SupportsPause () const
 

Protected Member Functions

virtual void OnRenderFrameDestructionEx ()
 
virtual int ProcessGeometryTableEx ()
 
virtual int ProcessLightTableEx ()
 
- Protected Member Functions inherited from CRhinoSdkRender
CImplImpl ()
 
RenderReturnCodes ReturnRenderCode (RenderReturnCodes rc)
 
CRhinoViewRhinoView () const
 
void SetRhinoView (CRhinoView *v)
 

Additional Inherited Members

- Public Types inherited from CRhinoSdkRender
enum  RenderReturnCodes {
  render_ok = 0, render_empty_scene, render_cancel, render_no_active_view,
  render_on_pre_create_window, render_no_frame_wnd_pointer, render_error_creating_window, render_error_starting_render,
  render_enter_modal_loop, render_exit_modal_loop, render_wm_quit
}
 Render command an helpers. More...
 
- Protected Attributes inherited from CRhinoSdkRender
friend CImpl
 
bool m_batch_mode
 
DWORD m_end_time
 
int m_error_code
 
int m_light_count
 
int m_mesh_count
 
CRhinoRenderPlugInm_plugin
 
BOOL32 m_render_canceled
 
CRhinoDocm_rhino_doc
 
CRhinoViewm_rhino_view
 
ON__UINT_PTR m_sdk_reserved = 0
 
DWORD m_start_time
 

Detailed Description

This class was added to fix a problem with blocks. If a block is being rendered then you need a CRhinoObjRef& instead of a const CRhinoObject* so that you can get the block geometry insert transform.

Constructor & Destructor Documentation

◆ ~CRhinoSdkRenderEx()

virtual CRhinoSdkRenderEx::~CRhinoSdkRenderEx ( )
virtual

Member Function Documentation

◆ AddRenderMeshToSceneEx()

virtual BOOL32 CRhinoSdkRenderEx::AddRenderMeshToSceneEx ( const CRhinoObjRef ref,
const CRhinoMaterial material,
const ON_Mesh  
)
virtual

Description: Called br ProcessGeometryTableEx() when an object is encountered that contains a render mesh. Returns: TRUE - If plug-in will render this object FALSE - object won't be rendered

◆ CallBackProc()

virtual LRESULT CRhinoSdkRenderEx::CallBackProc ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
virtual

Description: Reserved for future use. This may be used to extend this classed functionality in the future.

◆ IgnoreRhinoObjectEx()

virtual BOOL32 CRhinoSdkRenderEx::IgnoreRhinoObjectEx ( const CRhinoObjRef ref)
virtual

Description: Called br ProcessGeometryTableEx() when an object is encountered that does not contain a render mesh. Returns: TRUE - object won't be rendered FALSE - If plug-in will render this object

◆ OnRenderFrameDestructionEx()

virtual void CRhinoSdkRenderEx::OnRenderFrameDestructionEx ( )
protectedvirtual

◆ ProcessGeometryTableEx()

virtual int CRhinoSdkRenderEx::ProcessGeometryTableEx ( )
protectedvirtual

◆ ProcessLightTableEx()

virtual int CRhinoSdkRenderEx::ProcessLightTableEx ( )
protectedvirtual

◆ QuerySdkRenderEx()

virtual LRESULT CRhinoSdkRenderEx::QuerySdkRenderEx ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
virtual

◆ RenderEx()

virtual RenderReturnCodes CRhinoSdkRenderEx::RenderEx ( const CRhinoCommandContext context,
LPSIZE  sizeImage = 0,
const wchar_t *  lpsWindowTitle = 0,
UINT  nIDResource = 0 
)
virtual

◆ RenderReturnCodesToStringEx()

virtual void CRhinoSdkRenderEx::RenderReturnCodesToStringEx ( RenderReturnCodes  code,
ON_wString out 
) const
virtual

◆ RenderWindowEx()

virtual RenderReturnCodes CRhinoSdkRenderEx::RenderWindowEx ( const CRhinoCommandContext context,
CRhinoView view,
const LPRECT  rect,
bool  bRenderInWindow 
)
virtual