Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1986 closed enhancement (fixed)

Stylization: allow retrieving visibility information

Reported by: danstoica Owned by:
Priority: low Milestone:
Component: General Version: 2.1.0
Severity: trivial Keywords:
Cc: External ID:

Description

Let's assume a layer has range styles or thematic rules. The Default Stylizer checks these constrains for feature and may decide not to draw. The issue is on the client side because these rules are owned by the Stylizer and the client needs a way to filter out the invisible features.

The solution is to expose these rules. The proposal is to add 2 public new methods on the Default Stylizer class:

Returns true if a valid range was found. Returns false otherwise. virtual bool HasValidScaleRange (MdfModel::VectorLayerDefinition* layer, double mapScale);

Returns a Filter containing the combined thematic rules. Returns NULL in case there are no rules. virtual FdoFilter * GetRulesFilter(MdfModel::VectorLayerDefinition* layer, double mapScale);

Change History (3)

comment:1 by waltweltonlair, 13 years ago

Resolution: fixed
Status: newclosed

I've reviewed Dan's fix and submitted it.

  • fixed in trunk stream with r6590
  • fixed in adsk/2.3r stream with r6591
  • fixed in adsk/2.4j stream with r6592

comment:2 by zspitzer, 13 years ago

can this be applied to the 2.4 branch as well?

comment:3 by waltweltonlair, 13 years ago

This enhancement ticket simply exposes some helper methods. In the 2.4 branch who would be using these?

Note: See TracTickets for help on using tickets.