Package com.threerings.stage.data

Examples of com.threerings.stage.data.StageMisoSceneModel


public class StageMisoSceneRuleSet extends SparseMisoSceneRuleSet
{
    @Override
    protected SparseMisoSceneModel createMisoSceneModel ()
    {
        return new StageMisoSceneModel();
    }
View Full Code Here


    protected void recomputeColorClasses ()
    {
        // add all possible colorization names to the list
        final TileManager tilemgr = _ctx.getTileManager();
        final TreeSet<String> set = Sets.newTreeSet();
        StageMisoSceneModel msmodel = StageMisoSceneModel.getSceneModel(_scene.getSceneModel());
        msmodel.visitObjects(new ObjectVisitor() {
            public void visit (ObjectInfo info) {
                int tsid = TileUtil.getTileSetId(info.tileId);
                TileSet tset;
                try {
                    tset = tilemgr.getTileSet(tsid);
View Full Code Here

        // we iterate over every object in the whole goddamned scene which
        // is so hairily inefficient i can't even bear to contemplate it
        ObjectSet objs = new ObjectSet();
        Rectangle orect = new Rectangle(rect);
        orect.grow(MAX_OBJECT_SIZE, MAX_OBJECT_SIZE);
        StageMisoSceneModel mmodel = StageMisoSceneModel.getSceneModel(model);
        mmodel.getObjects(orect, objs);

        // now prune from this set any and all objects that don't actually
        // overlap the specified rectangle
        Rectangle foot = new Rectangle();
        for (int ii = 0; ii < objs.size(); ii++) {
View Full Code Here

    /**
     * Computes the area in which the view is allowed to scroll.
     */
    protected void computeScrollArea ()
    {
        StageMisoSceneModel ysmodel = (StageMisoSceneModel)_model;
        _area = null;
        for (Iterator<StageMisoSceneModel.Section> iter = ysmodel.getSections(); iter.hasNext(); ) {
            StageMisoSceneModel.Section sect = iter.next();
            Rectangle sbounds = MisoUtil.getFootprintPolygon(
                _metrics, sect.x, sect.y, ysmodel.swidth, ysmodel.sheight).getBounds();
            if (_area == null) {
                _area = sbounds;
View Full Code Here

TOP

Related Classes of com.threerings.stage.data.StageMisoSceneModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.