本文整理汇总了C++中Matrix44F::setFrontOrientation方法的典型用法代码示例。如果您正苦于以下问题:C++ Matrix44F::setFrontOrientation方法的具体用法?C++ Matrix44F::setFrontOrientation怎么用?C++ Matrix44F::setFrontOrientation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Matrix44F
的用法示例。
在下文中一共展示了Matrix44F::setFrontOrientation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void ProxyViz::draw( M3dView & view, const MDagPath & path,
M3dView::DisplayStyle style,
M3dView::DisplayStatus status )
{
if(!m_enableCompute) return;
MObject thisNode = thisMObject();
updateWorldSpace(thisNode);
MPlug mutxplug( thisNode, axmultiplier);
MPlug mutyplug( thisNode, aymultiplier);
MPlug mutzplug( thisNode, azmultiplier);
setScaleMuliplier(mutxplug.asFloat(),
mutyplug.asFloat(),
mutzplug.asFloat() );
MPlug svtPlug(thisNode, adisplayVox);
setShowVoxLodThresold(svtPlug.asFloat() );
MDagPath cameraPath;
view.getCamera(cameraPath);
if(hasView() ) updateViewFrustum(thisNode);
else updateViewFrustum(cameraPath);
setViewportAspect(view.portWidth(), view.portHeight() );
MPlug actp(thisNode, aactivated);
if(actp.asBool()) setWireColor(.125f, .1925f, .1725f);
else setWireColor(.0675f, .0675f, .0675f);
_viewport = view;
fHasView = 1;
view.beginGL();
double mm[16];
matrix_as_array(_worldInverseSpace, mm);
glPushMatrix();
glMultMatrixd(mm);
ExampVox * defBox = plantExample(0);
updateGeomBox(defBox, thisNode);
drawWireBox(defBox->geomCenterV(), defBox->geomScale() );
Matrix44F mat;
mat.setFrontOrientation(Vector3F::YAxis);
mat.scaleBy(defBox->geomSize() );
mat.glMatrix(m_transBuf);
drawCircle(m_transBuf);
drawGridBounding();
// drawGrid();
if ( style == M3dView::kFlatShaded ||
style == M3dView::kGouraudShaded ) {
drawPlants();
}
else
drawWiredPlants();
if(hasView() ) drawViewFrustum();
drawBrush(view);
drawActivePlants();
drawGround();
glPopMatrix();
view.endGL();
std::cout<<" viz node draw end";
}