Example #1
0
bool
AgeBlueprint::setup(const search::fef::IIndexEnvironment &env,
                    const search::fef::ParameterList &params)
{
    _attribute = params[0].getValue();
    defineInput("now");

    describeOutput("out", "The age of the document, in seconds.");
    env.hintAttributeAccess(_attribute);
    return true;
}
Example #2
0
SAGetRandomAnnotation::SAGetRandomAnnotation()
   : StoryAction( "SAGetRandomAnnotation" )
   , m_out( NULL )
   , m_spawnPoint( false )
{
   ThreadSystem& threadSystem = TSingleton< ThreadSystem >::getInstance();
   if ( threadSystem.getCurrentThread().m_serializationInProgress == false )
   {
      defineInput( new SAVoidInput( "In" ) );

      m_out = new SAAnnotationOutput( "Out" );
      defineOutput( m_out );
   }
}
Example #3
0
MNTexture::MNTexture( const char* name, Texture* texture )
: MaterialNode( name )
   , m_texture( texture )
   , m_uvInput( NULL )
   , m_output( NULL )
   , m_renderableTexture( new RenderableTexture() )
{
   if ( !IS_BEING_SERIALIZED() )
   {
      m_uvInput = new MSVec2Input( "UV" );
      defineInput( m_uvInput );

      m_output = new MSColorOutput( "Color" );
      defineOutput( m_output );
   }
}