[CONNECT C++] Element Transparency during _OnDynamicFrame()

I've placed an ellipse in my model, enabled Transparency in the View Attributes, filled the shape and changed the shape's Transparency value. The element displays with the expected transparency. In my tool's code, I create an ellipse, and set it's fill and transparency:

IAreaFillPropertiesEdit		*fillProps = dynamic_cast<IAreaFillPropertiesEdit*>(&eeh.GetHandler());
UInt32						fillColor = 23;
bool						alwaysFill = true;
fillProps->AddSolidFill(eeh, &fillColor, &alwaysFill);

ElementPropertiesSetterPtr		propSet = ElementPropertiesSetter::Create();
propSet->SetTransparency(.95);
propSet->Apply(eeh);

However, when the ellipse displays in _OnDynamicFrame(), the ellipse is not transparent (I have ensured that the view's transparency is enabled). Might that be due to the way I'm setting the RedrawElems object?

	RedrawElems redrawTool;
	redrawTool.SetDrawMode(DRAW_MODE_TempDraw);
	redrawTool.SetDrawPurpose(DrawPurpose::Dynamics);
	redrawTool.SetDynamicsViews(IViewManager::GetActiveViewSet(), ev.GetViewport());
	
	redrawTOol.DoRedraw(eeh);
	

Thanks,

Bruce

Parents Reply Children
No Data