laumaya / GLC_lib

GLC_lib is a C++ library for high performance 3D application based on OpenGL and Qt4 GUI
http://www.glc-lib.net
Other
62 stars 31 forks source link

XYZ Manipulator in viewport #36

Closed maouache closed 4 years ago

maouache commented 4 years ago

Hello Laumaya, I want to know which classes are responsable for the xyz in viewport. I try to get inspiration from your engine code. I have been looking for a long time for a solution or a track, now I found it. these are the axes I am talking about in the image. Capture

JayFoxRox commented 4 years ago

I assume this code and this code which probably renders it (all of which is in GLC_Player, not GLC_lib).

laumaya commented 4 years ago

JayFoxRox is right. The code for displaying GLC_PLayer axis is in GLC_Player. OpenglView::displayInfo() line 940 in OpenglView class. Lines created in the class constructor : GLC_3DViewInstance line= GLC_Factory::instance()->createLine(GLC_Point3d(), glc::X_AXIS); line.geomAt(0)->setWireColor(Qt::red); m_UiCollection.add(line); line= GLC_Factory::instance()->createLine(GLC_Point3d(), glc::Y_AXIS); line.geomAt(0)->setWireColor(Qt::darkGreen); m_UiCollection.add(line); line= GLC_Factory::instance()->createLine(GLC_Point3d(), glc::Z_AXIS); line.geomAt(0)->setWireColor(Qt::blue); m_UiCollection.add(line);

maouache commented 4 years ago

thank you for helping guys