<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
I'm a VTK-noobs, so I hope someone has an idea. This is my code to create the axes:<br /><br /> double axesColor[3] = {0, 0, 0};<br /> m_axesActor->SetVisibility(1);<br /> m_axesActor->SetCamera(m_renderer->GetActiveCamera());<br /> m_axesActor->SetBounds(m_surfaceMapper->GetBounds());<br /> m_axesActor->SetTickLocationToOutside();<br /> m_axesActor->SetFlyMode(VTK_FLY_OUTER_EDGES);<br /> m_axesActor->SetGridLineLocation(VTK_GRID_LINES_FURTHEST);<br /> //setup x axis<br /> m_axesActor->DrawXGridlinesOn();<br /> m_axesActor->GetXAxesLinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetXAxesGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetXAxesGridpolysProperty()->SetColor(axesColor);<br /> m_axesActor->GetXAxesInnerGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->XAxisMinorTickVisibilityOff();<br /> m_axesActor->SetXAxisLabelVisibility(1);<br /> m_axesActor->GetTitleTextProperty(0)->SetColor(axesColor);<br /> m_axesActor->GetLabelTextProperty(0)->SetColor(axesColor);<br /> //setup y axis<br /> m_axesActor->DrawYGridlinesOn();<br /> m_axesActor->GetYAxesLinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetYAxesGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetYAxesGridpolysProperty()->SetColor(axesColor);<br /> m_axesActor->GetYAxesInnerGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->YAxisMinorTickVisibilityOff();<br /> m_axesActor->SetYAxisLabelVisibility(1);<br /> m_axesActor->GetTitleTextProperty(1)->SetColor(axesColor);<br /> m_axesActor->GetLabelTextProperty(1)->SetColor(axesColor);<br /> //setup z axis<br /> m_axesActor->DrawZGridlinesOn();<br /> m_axesActor->GetZAxesLinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetZAxesGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->GetZAxesGridpolysProperty()->SetColor(axesColor);<br /> m_axesActor->GetZAxesInnerGridlinesProperty()->SetColor(axesColor);<br /> m_axesActor->ZAxisMinorTickVisibilityOff();<br /> m_axesActor->ZAxisLabelVisibilityOn();<br /> m_axesActor->GetTitleTextProperty(2)->SetColor(axesColor);<br /> m_axesActor->GetLabelTextProperty(2)->SetColor(axesColor);<br /> m_axesActor->GetLabelTextProperty(2)->SetOrientation(-90.0);<br /> //setup unit strings<br /> m_axesActor->SetXUnits("");<br /> m_axesActor->SetYUnits("");<br /> m_axesActor->SetZUnits("");<br /> //add to scene<br /> m_renderer->AddActor(m_axesActor);<br /><br />Now, if I enable grid polys: "m_axesActor->DrawXGridlPolysOn()" I get a grid of polys (which the name states, obviously), <br />but I want just ONE poly in the same plane where axes are... (Sort of like this: <a href="http://cloud.originlab.com/www/resources/graph_gallery/images_galleries/graph_gallery_3dxyywalls_500px.gif">http://cloud.originlab.com/www/resources/graph_gallery/images_galleries/graph_gallery_3dxyywalls_500px.gif</a>)<br />If there's a different way/class I need to use to achieve this, please feel free to tell me.<br /><br />Best Regards,<br /><br />Kim<br /><br />
<p>Am 26.07.2014 13:38 schrieb Kim Rosenbohm:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Hi All.
I want to display the axes to a plot in a fashion so that the scales are
always behind/below the plot (so far so good, works) and shows ONE
filled plane for X-Y-Z there.
I tried a lot of options, but found no combination that allows that. I
always get all grid polys shown... I don't need this to work in the same
CubeAxesActor. If I need to use a second one that would be fine with me.
Any Ideas or do I need to roll my own class?!
Best Regards,
Kim
_______________________________________________
Powered by <a href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
</body></html>