Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353578 - SphereFigureShape fill and outline color get not applied
Summary: SphereFigureShape fill and outline color get not applied
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Gef3d (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 09:50 EDT by fabisiew CLA
Modified: 2021-03-23 18:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabisiew CLA 2011-08-02 09:50:41 EDT
Build Identifier: M20100211-1343

In org.eclipse.draw3d.shapes.SphereShape in methods 

private void renderFill(Graphics3D i_g3d)

and

private void renderOutline(Graphics3D i_g3d)

the color settings are hard coded in the first line of the methods

i_g3d.glColor4f(0, 0, 0, 0.5f);

while it should be

i_g3d.glColor(m_fillColor, m_alpha);






Reproducible: Always

Steps to Reproduce:
1.Create 3DEditor which displays SphereShapes
2.In the EditPart-Class of the Figure set background and foreground color in refreshVisuals method:


        @Override
	protected void refreshVisuals() {
		IFigure fig = getFigure();
                fig.setBackgroundColor(EditorUtil.getSWTColor(...));
                fig.setForegroundColor(EditorUtil.getSWTColor(...));
		
		super.refreshVisuals();
	
	}



3. Problem: SphereFigure remains blue (fill color) with red outline color