THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/07/2010 at 06:07, xxxxxxxx wrote:
Problem solved. I use a trick to do that, first I switch the camera projection with SetProjection and then I change the camera global matrix so it looks like the right view. Everything works perfectly, the last problem is the display ! It actually keeps the current display ("Gouraud Shading" by default) and I would like to change it to "Lines".
I've found the way but I need a reference on the display settings which is available in a ToolData plugin... The display settings are in the struct :
struct ControlDisplayStruct { public: LONG displaymode; Bool backface_culling; Bool editmode; Vector* vertex_color; };
and the reference is available in the DisplayControl method (ToolData)
virtual Bool DisplayControl(BaseDocument* doc, BaseObject* op, BaseObject* chainstart, BaseDraw* bd, BaseDrawHelp* bh, ControlDisplayStruct& cds);
The problem is my Plugin is a SceneHookData... Is there any other way to change the display settings without having to switch my plugin parent class ?