protected DrawPlane ( float3 _position, float3 _normal, float3 _tangent, float _sizeTop, float _sizeBottom, float _sizeY, float4 _color, bool _circle ) : void | ||
_position | float3 | |
_normal | float3 | |
_tangent | float3 | |
_sizeTop | float | |
_sizeBottom | float | |
_sizeY | float | |
_color | float4 | |
_circle | bool | |
return | void |
public void Draw(DebuggerForm _owner, bool _isSelected) { // Render the plane float4 color = m_isValid ? m_isClosing ? new float4(1, 0.5f, 0.2f, 0.2f) : new float4(1, 1, 1, 0.2f) : new float4(1, 0, 0, 0.2f); if (_isSelected && _owner.checkBoxDebugPlane.Checked) { color = _owner.SelectedPlaneColor(color); } if (!_owner.checkBoxHidePlanes.Checked || _isSelected) { _owner.DrawPlane(m_wsPosition, m_wsNormal, ComputeTangent(), 10.0f, 10.0f, 10.0f, color, false); } // Render the lines for (int lineIndex = 0; lineIndex < m_lines.Count; lineIndex++) { m_lines[lineIndex].Draw(_owner, !m_isValid, _isSelected && lineIndex == _owner.integerTrackbarControlLine.Value); } if (!_owner.checkBoxHideRemovedLines.Checked || (_isSelected && _owner.checkBoxDebugPlane.Checked)) { for (int lineIndex = 0; lineIndex < m_removedLines.Count; lineIndex++) { m_removedLines[lineIndex].Draw(_owner, true, false); } } }
public void Draw( DebuggerForm _owner, bool _isSelected ) { // Render the plane float4 color = m_isValid ? m_isClosing ? new float4( 1, 0.5f, 0.2f, 0.2f ) : new float4( 1, 1, 1, 0.2f ) : new float4( 1, 0, 0, 0.2f ); if ( _isSelected && _owner.checkBoxDebugPlane.Checked ) color = _owner.SelectedPlaneColor( color ); if ( !_owner.checkBoxHidePlanes.Checked || _isSelected ) _owner.DrawPlane( m_wsPosition, m_wsNormal, ComputeTangent(), 10.0f, 10.0f, 10.0f, color, false ); // Render the lines for ( int lineIndex=0; lineIndex < m_lines.Count; lineIndex++ ) { m_lines[lineIndex].Draw( _owner, !m_isValid, _isSelected && lineIndex == _owner.integerTrackbarControlLine.Value ); } if ( !_owner.checkBoxHideRemovedLines.Checked || (_isSelected && _owner.checkBoxDebugPlane.Checked) ) for ( int lineIndex=0; lineIndex < m_removedLines.Count; lineIndex++ ) { m_removedLines[lineIndex].Draw( _owner, true, false ); } }