Examples of AvatarConfigInfo


Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

            // If we have not creating the avatar yet, then look for the config
            // component on the cell. Fetch the avatar configuration.
            if (avatarCharacter == null) {
                AvatarConfigComponent configComp = cell.getComponent(AvatarConfigComponent.class);
                AvatarConfigInfo avatarConfigInfo = null;
                if (configComp != null) {
                    avatarConfigInfo = configComp.getAvatarConfigInfo();
                }
                logger.info("LOADING AVATAR FOR " + avatarConfigInfo);
                pendingAvatar = loadAvatar(avatarConfigInfo);
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

        switch (event.getQuality()) {
            case High :
                // Fetch the avatar configuration information and change to the
                // current avatar
                AvatarConfigComponent comp = cell.getComponent(AvatarConfigComponent.class);
                AvatarConfigInfo avatarConfigInfo = comp.getAvatarConfigInfo();
                changeAvatar(loadAvatar(avatarConfigInfo));
                break;
            case Medium :
                changeAvatar(loadAvatar(null));
                break;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

            // we set the URL in the AvatarConfigInfo to null, that should do
            // the trick. (Note that since we manually obtained the
            // AvatarLoaderFactorySPI, we don't need to update the factory
            // class name in the AvatarConfigInfo object, but we do anyway).
            String defaultClassName = factory.getClass().getName();
            AvatarConfigInfo defaultInfo =
                    new AvatarConfigInfo(null, defaultClassName);

            // Go ahead and load the default avatar
            ret = factory.getAvatarLoader().getAvatarCharacter(cell, username,
                    defaultInfo);
        }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

        // Ask the configuration manager to the conversion to the server URL
        ImiAvatarConfigManager m = ImiAvatarConfigManager.getImiAvatarConfigManager();
        try {
            String url = m.getAvatarURL(session, this).toExternalForm();
            String className = ImiAvatarLoaderFactory.class.getName();
            return new AvatarConfigInfo(url, className);
        } catch (InterruptedException excp) {
            logger.log(Level.WARNING, "Fetch of avatar URL was interrupted", excp);
            return null;
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

        AvatarConfigComponent configComponent = viewCell.getComponent(AvatarConfigComponent.class);
        AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
        AvatarSPI avatar = registry.getAvatarInUse();
        if (avatar != null) {
            ServerSessionManager session = viewCell.getCellCache().getSession().getSessionManager();
            AvatarConfigInfo configInfo = avatar.getAvatarConfigInfo(session);
            configComponent.requestAvatarConfigInfo(configInfo, isLocal);
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.common.cell.AvatarConfigInfo

    /**
     * {@inheritDoc}
     */
    public AvatarConfigInfo getAvatarConfigInfo(ServerSessionManager session) {
        return new AvatarConfigInfo(avatarURL, BasicAvatarLoaderFactory.class.getName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.